Results for “Std.Graph.Graph”
22 matching declarations
Use module:Std.List, kind:fn, or is:exact. Put a Pudu type after ::.
- Std.Graph.Graph
A directed graph: nodes, and the edges leading out of each one.
- Std.Graph.addEdge
&Std.Graph.Graph[N] -> N -> N -> Std.Graph.Graph[N] where N: OrdThe graph with an edge from one node to another.
- Std.Graph.addNode
&Std.Graph.Graph[N] -> N -> Std.Graph.Graph[N] where N: OrdThe graph with a node in it, whether or not it has any edges.
- Std.Graph.components
&Std.Graph.Graph[N] -> Array[Array[N]] where N: OrdThe groups of nodes joined to each other when direction is ignored.
- Std.Graph.empty
Std.Graph.Graph[N] where N: OrdA graph with nothing in it.
- Std.Graph.fromEdges
&Array[(N, N)] -> Std.Graph.Graph[N] where N: OrdA graph built from a list of edges.
- Std.Graph.hasCycle
&Std.Graph.Graph[N] -> Bool where N: OrdWhether following edges can lead back to where it started.
- Std.Graph.hasEdge
&Std.Graph.Graph[N] -> N -> N -> Bool where N: OrdWhether there is an edge from one node to another.
- Std.Graph.hasNode
&Std.Graph.Graph[N] -> N -> Bool where N: OrdWhether the node is in the graph.
- Std.Graph.inDegree
&Std.Graph.Graph[N] -> N -> Int where N: OrdHow many edges lead into a node.
- Std.Graph.leaves
&Std.Graph.Graph[N] -> Array[N] where N: OrdThe nodes that point at nothing.
- Std.Graph.neighbours
&Std.Graph.Graph[N] -> N -> Array[N] where N: OrdThe nodes an edge leads to from here.
- Std.Graph.nodes
&Std.Graph.Graph[N] -> Array[N] where N: OrdEvery node.
- Std.Graph.order
&Std.Graph.Graph[N] -> Int where N: OrdHow many nodes there are.
- Std.Graph.outDegree
&Std.Graph.Graph[N] -> N -> Int where N: OrdHow many edges lead out of a node.
- Std.Graph.reachableFrom
&Std.Graph.Graph[N] -> N -> Array[N] where N: OrdEvery node reachable from a starting node, nearest first.
- Std.Graph.reaches
&Std.Graph.Graph[N] -> N -> N -> Bool where N: OrdWhether one node can be reached from another by following edges.
- Std.Graph.reversed
&Std.Graph.Graph[N] -> Std.Graph.Graph[N] where N: OrdThe graph with every edge turned around.
- Std.Graph.roots
&Std.Graph.Graph[N] -> Array[N] where N: OrdThe nodes that nothing points at, which is where a topological walk begins.
- Std.Graph.shortestPath
&Std.Graph.Graph[N] -> N -> N -> Option[Array[N]] where N: OrdThe shortest path from one node to another counted in edges, or
Nonewhen - Std.Graph.stronglyConnected
&Std.Graph.Graph[N] -> Array[Array[N]] where N: OrdThe groups of nodes that can all reach each other.
- Std.Graph.topologicalOrder
&Std.Graph.Graph[N] -> Option[Array[N]] where N: OrdThe nodes in an order where every node comes before the ones it points at,
