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::StableGraphcompatible 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
Frame - Node
- Node
Props - Stores properties of a Node
- Settings
Interaction - Represents graph interaction settings.
- Settings
Navigation - Represents graph navigation settings.
- Settings
Style SettingsStylestores 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::Graphinstance. - add_
edge_ custom Deprecated - Helper function which adds user’s edge to the
super::Graphinstance with custom edge transform function. - add_
node Deprecated - Helper function which adds user’s node to the
super::Graphinstance. - add_
node_ custom Deprecated - Helper function which adds user’s node to the
super::Graphinstance 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.
- get_
layout_ state - Loads current persisted layout state (or default if none). Useful for external UI panels.
- get_
metrics - Returns the latest per-frame performance metrics stored in metadata.
- node_
size - Calculates the size of the node in the direction of the given vector
- reset
- Helper to reset both
MetadataFrameandLayoutcache. Can be useful when you want to change layout in runtime - reset_
layout - Resets
Layoutstate - reset_
metadata - Resets
MetadataFramestate - set_
layout_ state - Persists a new layout state so that on the next frame it will be applied.
- to_
graph - Helper function which transforms
petgraph::stable_graph::StableGraphinto thesuper::Graphrequired by thesuper::GraphViewwidget. - 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