VisGraph Type
Module to manipulate and style a graph
Constructors
Constructor | Description |
|
|
Static members
Static member | Description |
|
|
Full Usage:
VisGraph.show () graph
Parameters:
unit
graph : SigmaGraph
-
The SigmaGraph to display.
|
|
Full Usage:
VisGraph.withCircularLayout (?Scale, ?Center)
Parameters:
float
-
Optional scale for the circular layout.
?Center : float
-
Optional center for the circular layout.
Returns: SigmaGraph -> SigmaGraph
The updated SigmaGraph with the circular layout.
|
|
Full Usage:
VisGraph.withEdge edge graph
Parameters:
Edge
-
The edge to add.
graph : SigmaGraph
-
The SigmaGraph to which the edge will be added.
Returns: SigmaGraph
The updated SigmaGraph with the added edge.
|
|
Full Usage:
VisGraph.withEdges edges graph
Parameters:
Edge seq
-
The sequence of edges to add.
graph : SigmaGraph
-
The SigmaGraph to which the edges will be added.
Returns: SigmaGraph
The updated SigmaGraph with the added edges.
|
|
Full Usage:
VisGraph.withForceAtlas2 (?Iterations, ?Settings, ?GetEdgeWeight)
Parameters:
int
-
Optional number of iterations for the layout algorithm.
?Settings : FA2Settings
-
Optional settings for the layout algorithm.
?GetEdgeWeight : string
-
Optional function to get edge weight.
Returns: SigmaGraph -> SigmaGraph
The updated SigmaGraph with the ForceAtlas2 layout.
|
|
Full Usage:
VisGraph.withHoverSelector ?enable
Parameters:
bool
-
Optional flag to enable or disable the hover selector (default is true).
Returns: SigmaGraph -> SigmaGraph
The updated SigmaGraph with the hover selector widget.
|
|
Full Usage:
VisGraph.withNode node graph
Parameters:
Node
-
The node to add.
graph : SigmaGraph
-
The SigmaGraph to which the node will be added.
Returns: SigmaGraph
The updated SigmaGraph with the added node.
|
|
Full Usage:
VisGraph.withNodes nodes graph
Parameters:
Node seq
-
The sequence of nodes to add.
graph : SigmaGraph
-
The SigmaGraph to which the nodes will be added.
Returns: SigmaGraph
The updated SigmaGraph with the added nodes.
|
|
Full Usage:
VisGraph.withNoverlap (?MaxIterations, ?Settings)
Parameters:
int
-
Optional maximum number of iterations for the layout algorithm.
?Settings : NoverlapSettings
-
Optional settings for the layout algorithm.
Returns: SigmaGraph -> SigmaGraph
The updated SigmaGraph with the no-overlap layout.
|
|
Full Usage:
VisGraph.withRandomLayout (?Scale, ?Center, ?Dimensions)
Parameters:
int
-
Optional scale for the random layout.
?Center : float
-
Optional center for the random layout.
?Dimensions : string
-
Optional dimensions for the random layout.
Returns: SigmaGraph -> SigmaGraph
The updated SigmaGraph with the random layout.
|
|
Full Usage:
VisGraph.withRenderer settings
Parameters:
Settings
-
The renderer settings to apply.
Returns: SigmaGraph -> SigmaGraph
The updated SigmaGraph with the specified renderer settings.
|
|
Full Usage:
VisGraph.withSize (?Width, ?Height)
Parameters:
CssLength
-
Optional width of the canvas.
?Height : CssLength
-
Optional height of the canvas.
Returns: SigmaGraph -> SigmaGraph
The updated SigmaGraph with the specified canvas size.
|
|