Crate egui_graphs

Source

Structs§

DefaultEdgeShape
DefaultNodeShape
This is the default node shape which is used to display nodes in the graph.
DrawContext
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.
EdgeProps
Stores properties of an Edge
Graph
Wrapper around petgraph::stable_graph::StableGraph compatible with super::GraphView. It is used to store graph data and provide access to it.
GraphView
Widget for visualizing and interacting with graphs.
LayoutHierarchical
LayoutRandom
Randomly places nodes on the canvas. Does not override existing locations. Applies once.
LayoutStateHierarchical
LayoutStateRandom
Metadata
Node
NodeProps
Stores properties of a Node
SettingsInteraction
Represents graph interaction settings.
SettingsNavigation
Represents graph navigation settings.
SettingsStyle
SettingsStyle stores settings for the style of the graph.

Traits§

DisplayEdge
DisplayNode

Functions§

add_edgeDeprecated
Helper function which adds user’s edge to the super::Graph instance.
add_edge_customDeprecated
Helper function which adds user’s edge to the super::Graph instance with custom edge transform function.
add_nodeDeprecated
Helper function which adds user’s node to the super::Graph instance.
add_node_customDeprecated
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 the super::Graph required by the super::GraphView widget.
to_graph_custom
The same as to_graph, but allows to define custom transformation procedures for nodes and edges.

Type Aliases§

DefaultGraphView