Crate graph_types
source ·Expand description
Design
graph-types divides the graph into adjacency storage engine and entry storage engine.
Adjacency Storage Engine
The core property of a graph is nodes and edges.
There are many different ways to represent a graph.
Such as adjacency matrix, adjacency list, adjacency set, etc.
The most common one is adjacency list.
Entry Storage Engine
Other properties of the graph are stored in the entry storage engine.
For example weights, labels, colors, etc.
Each of the entry can be stored in different data structures.
For example, weights can be stored in a vector, labels can be stored in a hash map, some complex structures can even be stored in disk or a database.
Modules
Structs
- DirectedEdge represents an bidirectional edge between two nodes.
- DynamicEdge represents an bidirectional edge between two nodes.
- Arguments
- Arguments
- A double-ended iterator over the nodes of a graph.
- UndirectedEdge represents an bidirectional edge between two nodes.
Enums
- Determines the direction between two nodes
- Arguments
- Arguments
- Arguments
- Mark the graph as directed or undirected.
- Arguments
Traits
- Marker trait for edges
- Represent a graph storage, with a set of nodes and edges.
- Mark a graph engine that can add and delete edges or points
- Labeling a graph can provide Weight information
- Represents a node in a graph
- Labeling a graph can provide Weight information
Type Definitions
- used to determine the direction of an edge
- used to determine the direction of an edge