Crate wolf_graph

Crate wolf_graph 

Source
Expand description

A general graph data structure library with value semantics.

by Wolf McNally

Modules§

prelude
Re-exports of the most commonly used items in the wolf_graph module.

Macros§

eid
A convenience macro for creating an EdgeID from a string literal or an integer literal.
nid
A convenience macro for creating a NodeID from a string literal or an integer literal.

Structs§

CompoundBase
A compound graph is a graph with a parallel forest that puts the nodes of the graph into a hierarchy.
DAG
A DAG (Directed Acyclic Graph) data structure.
Data
A wrapper for binary data that is serialized as Base64.
EdgeID
A unique identifier for an edge in a graph.
Elements
A set of elment (node and edge) identifiers.
Forest
A forest is a graph that is a collection of trees.
Graph
A general graph data structure with value semantics.
NodeID
A unique identifier for a node in a graph.
ReversedGraph
An adapter that reverses the direction of edges in a graph.
Tree
A tree is a directed graph in which there is exactly one path between any two nodes.

Enums§

Error
Error type for graph operations.

Traits§

DFSVisitor
A visitor for depth-first search.
DepthFirstSearch
A trait for a graph that supports depth-first search.
IsTree
A trait for a graph that supports checking whether it is a tree.
MutableCompound
MutableForest
MutableGraph
MutableTree
PathExists
A trait for a graph that supports checking whether a path exists between two nodes.
TopologicalSort
A trait for a graph that supports topological sort.
VisitableCompound
VisitableForest
VisitableGraph
VisitableTree

Type Aliases§

BlankCompound
A convenience type for a compound graph with no data.
BlankDAG
A convenience type for a DAG with no additional data on nodes or edges.
BlankForest
A convenience type for a forest with no additional data on nodes or edges.
BlankGraph
A convenience type for a graph with no data.
BlankTree
A convenience type for a tree with no additional data on nodes or edges.
Compound
A compound graph is a graph with a parallel forest that puts the nodes of the graph into a hierarchy.
Edges
A set of edge identifiers.
Nodes
A set of node identifiers.