The Wayback Machine - http://web.archive.org/web/20231109211344/https://github.com/jbduncan/guava-graph-utils/
Skip to content

jbduncan/guava-graph-utils

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 

guava-graph-utils

This is a Java library with a few utilities for working with Guava graphs. Specifically:

  • MoreGraphs.buildGraphWithBreadthFirstTraversal: builds an ImmutableGraph from a set of starting nodes and a "successors function". The successors function is applied in a breadth-first manner to the starting nodes, then their children, then their grand-children, and so on and so forth until all descendants have been traversed.
  • MoreGraphs.asValueGraph: wraps a Guava Table as a ValueGraph.
  • MoreGraphs.topologicalOrdering: returns a topological ordering of the given graph; that is, a traversal of the graph in which each node is visited only after all its predecessors and other ancestors have been visited.

See these methods' javadocs for more information.

About

Utilities for working with Guava graphs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages