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
- Edge
Shape - Shapes produced for one edge, including its body and optional arrow tip.
- Edge
Shape Builder - 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 - Configures and renders an interactive graph.
- Graph
View Response - The result of rendering a
crate::GraphViewfor one frame. - 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.- TipProps
- Arrow-tip geometry for a directed edge.
Enums§
- Edge
Shape Props - Geometry used by
EdgeShapeBuilderto construct an edge body. - Graph
Change - A graph-specific change produced while rendering one
crate::GraphViewframe. - Layout
Hierarchical Orientation - Orientation of the hierarchical layout.
Traits§
- Animated
State - Optional hooks for animated/simulated layout states.
Implement on your layout state to allow
GraphViewhelpers to force-run steps even when paused and to read/write the last average displacement metric. - Display
Edge - Display
Node - Extra
Force - An additional force to be applied after the base forces.
Implementors are zero-sized marker types with the behavior in
apply. - Extras
Tuple - Trait to apply a heterogeneous tuple of extras.
- Force
Algorithm - A pluggable force-directed algorithm interface decoupled from the UI boilerplate.
- Layout
- Layout
State
Functions§
- 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