Constructors
directedfunction
Creates a new empty directed RefGraph.
makefunction
Creates a new
RefGraphfrom a Graph,Effect, orFx.undirectedfunction
Creates a new empty undirected RefGraph.
Derived queries
connectedComponentsvariable
Get connected components (undirected only).
edgeCountvariable
Get the edge count.
neighborsvariable
Get neighbors of a node.
neighborsDirectedvariable
Get directed neighbors of a node.
nodeCountvariable
Get the node count.
stronglyConnectedComponentsvariable
Get strongly connected components.
Optional queries
State models
RefGraphinterface
A RefGraph is a RefSubject specialized over a Graph.
State predicates
hasEdgevariable
Check if an edge exists.
hasNodevariable
Check if a node exists.
isAcyclicvariable
Check if the graph is acyclic.
isBipartitevariable
Check if the graph is bipartite (undirected only).
State updates
addEdgevariable
Add an edge to the graph.
addNodevariable
Add a node to the graph.
filterEdgesvariable
Filter edges.
filterNodesvariable
Filter nodes.
mapEdgesvariable
Map all edge data.
mapNodesvariable
Map all node data.
removeEdgevariable
Remove an edge from the graph.
removeNodevariable
Remove a node from the graph.
reversevariable
Reverse all edge directions.
updateEdgevariable
Update an edge’s data.
updateNodevariable
Update a node’s data.