{"@context":"https://w3id.org/codemeta/3.0","@type":"SoftwareSourceCode","identifier":"pkg:golang/github.com/rudderlabs/graph","name":"github.com/rudderlabs/graph","description":"Package graph is a library for creating generic graph data structures and\nmodifying, analyzing, and visualizing them.\n\nA graph consists of vertices of type T, which are identified by a hash value\nof type K. The hash value for a given vertex is obtained using the hashing\nfunction passed to New. A hashing function takes a T and returns a K.\n\nFor primitive types like integers, you may use a predefined hashing function\nsuch as IntHash – a function that takes an integer and uses that integer as\nthe hash value at the same time:\n\nFor storing custom data types, you need to provide your own hashing function.\nThis example takes a City instance and returns its name as the hash value:\n\nCreating a graph using this hashing function will yield a graph of vertices\nof type City identified by hash values of type string.\n\nAdding vertices to a graph of integers is simple. graph.Graph.AddVertex\ntakes a vertex and adds it to the graph.\n\nMost functions accept and return only hash values instead of entire instances\nof the vertex type T. For example, graph.Graph.AddEdge creates an edge\nbetween two vertices and accepts the hash values of those vertices. Because\nthis graph uses the IntHash hashing function, the vertex values and hash\nvalues are the same.\n\nAll operations that modify the graph itself are methods of Graph. All other\noperations are top-level functions of by this library.\n\nFor detailed usage examples, take a look at the README.","version":"v0.24.0","softwareVersion":"v0.24.0","license":"https://spdx.org/licenses/Apache-2.0","codeRepository":"https://github.com/rudderlabs/graph","issueTracker":"https://github.com/rudderlabs/graph/issues","url":"https://github.com/rudderlabs/graph","programmingLanguage":{"@type":"ComputerLanguage","name":"Go"},"dateCreated":"2022-06-13","dateModified":"2024-11-12","datePublished":"2024-11-12","copyrightYear":2022,"downloadUrl":"https://proxy.golang.org/github.com/rudderlabs/graph/@v/v0.24.0.zip","softwareHelp":{"@type":"WebSite","url":"https://pkg.go.dev/github.com/rudderlabs/graph#section-documentation"},"applicationCategory":"go","runtimePlatform":"go","developmentStatus":"active","sameAs":["https://pkg.go.dev/github.com/rudderlabs/graph"]}