Structs§
- Default
Edge Shape - Default
Node Shape - This is the default node shape which is used to display nodes in the graph.
- Draw
Context - Contains all the data about current widget state which is needed for custom drawing functions.
- Edge
- Stores properties of an edge that can be changed. Used to apply changes to the graph.
- Edge
Props - Stores properties of an Edge
- Graph
- Wrapper around
petgraph::stable_graph::StableGraph
compatible withsuper::GraphView
. It is used to store graph data and provide access to it. - Graph
View - Widget for visualizing and interacting with graphs.
- Layout
Hierarchical - Layout
Random - Randomly places nodes on the canvas. Does not override existing locations. Applies once.
- Layout
State Hierarchical - Layout
State Random - Metadata
- Node
- Node
Props - Stores properties of a Node
- Settings
Interaction - Represents graph interaction settings.
- Settings
Navigation - Represents graph navigation settings.
- Settings
Style SettingsStyle
stores settings for the style of the graph.
Traits§
Functions§
- add_
edge Deprecated - Helper function which adds user’s edge to the
super::Graph
instance. - add_
edge_ custom Deprecated - Helper function which adds user’s edge to the
super::Graph
instance with custom edge transform function. - add_
node Deprecated - Helper function which adds user’s node to the
super::Graph
instance. - add_
node_ custom Deprecated - Helper function which adds user’s node to the
super::Graph
instance with custom node transform function. - default_
edge_ transform - Default edge transform function. Keeps original data and creates a new edge.
- default_
node_ transform - Default node transform function. Keeps original data and creates a new node with a random location and label equal to the index of the node in the graph.
- node_
size - random_
graph - to_
graph - Helper function which transforms
petgraph::stable_graph::StableGraph
into thesuper::Graph
required by thesuper::GraphView
widget. - to_
graph_ custom - The same as
to_graph
, but allows to define custom transformation procedures for nodes and edges.