Structs§
- Center
Gravity - Center
Gravity Params - 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
- Extra
- A configured instance of an extra force (on/off + parameters).
- Fruchterman
Reingold - Fruchterman
Reingold State - Fruchterman
Reingold With Extras - Fruchterman
Reingold With Extras State - 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
Force Directed - 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.
Enums§
- Layout
Hierarchical Orientation - Orientation of the hierarchical layout.
Traits§
- Display
Edge - Display
Node - Force
Algorithm - A pluggable force-directed algorithm interface decoupled from the UI boilerplate.
- Layout
- Layout
State
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.
- generate_
random_ graph - Generates a random graph with the specified number of nodes and edges.
- generate_
simple_ digraph - Simple digraph for usage in examples and tests.
- generate_
simple_ ungraph - Simple ungraph for usage in examples and tests.
- node_
size - Calculates the size of the node in the direction of the given vector
- 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.
Type Aliases§
- Default
Graph View - Fruchterman
Reingold With Center Gravity - Convenience aliases when only center gravity is desired.
- Fruchterman
Reingold With Center Gravity State