Index
All Classes and Interfaces|All Packages
A
- accept(int, int, int) - Method in interface com.kobayami.graphity.EdgeConsumer
-
Performs this action on edge
edgeIndex, which issource -> target. - accept(int, Map) - Method in interface com.kobayami.graphity.dot.AttributeHook
-
Puts the attributes of the node or edge
idintoattributes. - addChild(int) - Method in class com.kobayami.graphity.GraphBuilder
-
Adds a node with an edge from
parentto it, and returns its node ID. - addChildren(int, int) - Method in class com.kobayami.graphity.GraphBuilder
-
Adds
countnodes, each with an edge fromparentto it, and returns the node ID of the first; the others follow in order. - addedEdges() - Method in class com.kobayami.graphity.GraphDiff
-
Returns the edges of the newer graph that the older one does not have, with their edge indices in the newer graph, in edge index order.
- addEdge(int, int) - Method in class com.kobayami.graphity.GraphBuilder
-
Adds the edge
source -> target. - addEdgeAndNodes(int, int) - Method in class com.kobayami.graphity.GraphBuilder
-
Adds the edge
source -> target, and the missing nodes up to the higher of the two node IDs. - addEdgePairs(int...) - Method in class com.kobayami.graphity.GraphBuilder
-
Adds an edge for each pair of node IDs in
endpoints:endpoints[0] -> endpoints[1],endpoints[2] -> endpoints[3], and so on. - addEdgePairsAndNodes(int...) - Method in class com.kobayami.graphity.GraphBuilder
-
Adds an edge for each pair of node IDs in
endpoints, asGraphBuilder.addEdgePairs(int...)does, and the missing nodes up to the highest of these node IDs. - addEdges(Edges) - Method in class com.kobayami.graphity.GraphBuilder
-
Adds the edges of an algorithm result, such as
BackEdges.of(Graph)orBiconnectivity.bridges(). - addEdgesAndNodes(Edges) - Method in class com.kobayami.graphity.GraphBuilder
-
Adds the edges of an algorithm result, as
GraphBuilder.addEdges(Edges)does, and the missing nodes up to the highest of their node IDs. - addGraph(Graph) - Method in class com.kobayami.graphity.GraphBuilder
-
Adds the nodes and edges of
graphafter the nodes already added, and returns the offset of its node IDs. - addInEdges(int, int...) - Method in class com.kobayami.graphity.GraphBuilder
-
Adds an edge from each node of
sourcestotarget. - addInEdges(int, IntList) - Method in class com.kobayami.graphity.GraphBuilder
-
Adds an edge from each node of
sourcestotarget. - addInEdgesAndNodes(int, int...) - Method in class com.kobayami.graphity.GraphBuilder
-
Adds an edge from each node of
sourcestotarget, and the missing nodes up to the highest of these node IDs. - addInEdgesAndNodes(int, IntList) - Method in class com.kobayami.graphity.GraphBuilder
-
Adds an edge from each node of
sourcestotarget, and the missing nodes up to the highest of these node IDs. - addNode() - Method in class com.kobayami.graphity.GraphBuilder
-
Adds a node and returns its node ID, which is the next in order.
- addNodes(int) - Method in class com.kobayami.graphity.GraphBuilder
-
Adds
countnodes and returns the node ID of the first; the others follow in order. - addOutEdges(int, int...) - Method in class com.kobayami.graphity.GraphBuilder
-
Adds an edge from
sourceto each node oftargets. - addOutEdges(int, IntList) - Method in class com.kobayami.graphity.GraphBuilder
-
Adds an edge from
sourceto each node oftargets. - addOutEdgesAndNodes(int, int...) - Method in class com.kobayami.graphity.GraphBuilder
-
Adds an edge from
sourceto each node oftargets, and the missing nodes up to the highest of these node IDs. - addOutEdgesAndNodes(int, IntList) - Method in class com.kobayami.graphity.GraphBuilder
-
Adds an edge from
sourceto each node oftargets, and the missing nodes up to the highest of these node IDs. - addParent(int) - Method in class com.kobayami.graphity.GraphBuilder
-
Adds a node with an edge from it to
child, and returns its node ID. - addParents(int, int) - Method in class com.kobayami.graphity.GraphBuilder
-
Adds
countnodes, each with an edge from it tochild, and returns the node ID of the first; the others follow in order. - addPath(int...) - Method in class com.kobayami.graphity.GraphBuilder
-
Adds a path through
nodes: an edge from each node of the array to the next. - addPath(IntList) - Method in class com.kobayami.graphity.GraphBuilder
-
Adds a path through
nodes: an edge from each node of the list to the next. - addPathAndNodes(int...) - Method in class com.kobayami.graphity.GraphBuilder
-
Adds a path through
nodes, and the missing nodes up to the highest of these node IDs. - addPathAndNodes(IntList) - Method in class com.kobayami.graphity.GraphBuilder
-
Adds a path through
nodes, and the missing nodes up to the highest of these node IDs. - adjacencyListOf(Graph) - Static method in class com.kobayami.graphity.Graphs
-
Returns the whole graph as text: one line per node with its out-nodes, in ascending order.
- Ancestry - Class in com.kobayami.graphity
-
An index of a forest for ancestor queries: the parent and depth of a node, whether one node is an ancestor of another, and the lowest common ancestor of two nodes.
- articulationPoints() - Method in class com.kobayami.graphity.Biconnectivity
-
Returns the articulation points, in ascending order.
- AttributeHook - Interface in com.kobayami.graphity.dot
-
A hook that puts the attributes of one node or edge, by node ID or edge index, for
DotWriter.nodeAttributes(AttributeHook)andDotWriter.edgeAttributes(AttributeHook).
B
- BACK - Enum constant in enum class com.kobayami.graphity.EdgeType
-
An edge to an ancestor of its source in the DFS forest, or to the source itself.
- BackEdges - Class in com.kobayami.graphity
-
The back edges of a graph: the edges that a depth-first search finds pointing back to a node on its current path, self-loops included.
- BfsDistances - Class in com.kobayami.graphity
-
The distances of the nodes of a graph from one or several sources, with a shortest path to every node reached.
- BiAdjacentGraph - Class in com.kobayami.graphity
-
A
Graphthat also holds the in-nodes of every node, for algorithms that follow edges against their direction. - Biconnectivity - Class in com.kobayami.graphity
-
The bridges, articulation points and biconnected components of a graph read as undirected, as
Components.biconnectivityOf(BiAdjacentGraph)returns them. - biconnectivityOf(BiAdjacentGraph) - Static method in class com.kobayami.graphity.Components
-
Returns the bridges, articulation points and biconnected components of
graph, read as undirected. - blocks() - Method in class com.kobayami.graphity.Biconnectivity
-
Returns the blocks, as a partition of the edges.
- bodyOf(int) - Method in class com.kobayami.graphity.controlflow.Loops
-
Returns the body of
loop: its nodes and those of the loops nested in it. - BOTTOM_UP - Enum constant in enum class com.kobayami.graphity.mermaid.MermaidWriter.Direction
-
Bottom to top,
BT. - bridges() - Method in class com.kobayami.graphity.Biconnectivity
-
Returns the bridges, in edge index order.
- build() - Method in class com.kobayami.graphity.GraphBuilder
-
Returns a graph with the nodes and edges added so far.
C
- ccsOf(Graph) - Static method in class com.kobayami.graphity.Components
-
Returns the connected components of
graphread as undirected. - CIRCLE - Enum constant in enum class com.kobayami.graphity.mermaid.MermaidWriter.Shape
-
A circle,
((...)). - classDef(String, String) - Method in class com.kobayami.graphity.mermaid.MermaidWriter
-
Defines a class for
MermaidWriter.nodeClass(IntFunction)to assign, written asclassDef name style. - clusters(NodePartition, IntFunction) - Method in class com.kobayami.graphity.dot.DotWriter
-
Draws each group of
partitionas a cluster, with a label by group ID. - clusters(NodePartition, IntFunction) - Method in class com.kobayami.graphity.mermaid.MermaidWriter
-
Draws each group of
partitionas a cluster (a Mermaidsubgraph), with a label by group ID. - com.kobayami.graphity - package com.kobayami.graphity
-
Directed graphs and their analysis, for tools that see a program as graphs: components, orders and cycles, reachability, trees and dominators, and graphs derived from other graphs.
- com.kobayami.graphity.controlflow - package com.kobayami.graphity.controlflow
-
Analyses of control flow: loops, dominance frontiers, control dependence and the placement of phi-nodes.
- com.kobayami.graphity.dot - package com.kobayami.graphity.dot
-
Export of graphs to DOT (the language of Graphviz) to look at them with its layout tools.
- com.kobayami.graphity.mermaid - package com.kobayami.graphity.mermaid
-
Export of graphs to Mermaid flowcharts, which render directly in Markdown, in issues and in documentation.
- Components - Class in com.kobayami.graphity
-
The algorithms for the components of a graph, and for the edges and nodes whose removal splits them.
- Components and connectivity - Section in package com.kobayami.graphity
- compose(EdgeMapping) - Method in class com.kobayami.graphity.EdgeMapping
-
Returns the mapping that applies
innerfirst and then this mapping. - compose(NodeMapping) - Method in class com.kobayami.graphity.NodeMapping
-
Returns the mapping that applies
innerfirst and then this mapping. - condense() - Method in class com.kobayami.graphity.NodePartition
-
Returns the condensed graph, with a node for each group and an edge between two groups wherever an edge of the partitioned graph runs between them.
- containsCycle(int) - Method in class com.kobayami.graphity.Sccs
-
Returns whether SCC
sccIdcontains a cycle: whether it has more than one node, or a single node with a self-loop. - containsSelfLoop(int) - Method in class com.kobayami.graphity.Graph
-
Returns whether
nodehas an edge to itself, called a self-loop. - Contracts - Section in Overview
- ControlFlow - Class in com.kobayami.graphity.controlflow
-
Relations of control flow that follow from
Dominators, returned as graphs: the dominance frontiers and, from them, control dependence. - count() - Method in class com.kobayami.graphity.Edges
-
Returns the number of edges.
- CROSS - Enum constant in enum class com.kobayami.graphity.EdgeType
-
An edge between two nodes of which neither is an ancestor of the other in the DFS forest: the search had finished the target before it reached the source.
- Csr - Class in com.kobayami.graphity
-
Access to the arrays in which a graph keeps its edges, for algorithm code that loops over all edges.
- currentLevel() - Method in class com.kobayami.graphity.FrontierTraverser
-
Returns the level of the node being visited: 0 for the start nodes,
k + 1for the nodes that entered the frontier while levelkwas visited. - CYLINDER - Enum constant in enum class com.kobayami.graphity.mermaid.MermaidWriter.Shape
-
A cylinder,
[(...)].
D
- degree(int) - Method in class com.kobayami.graphity.BiAdjacentGraph
-
Returns the degree of
node. - depthOf(int) - Method in class com.kobayami.graphity.Ancestry
-
Returns the depth of
node: the number of edges from the root of its tree to it. - Derived graphs and the data on them - Section in package com.kobayami.graphity
- DESCEND - Enum constant in enum class com.kobayami.graphity.DfsEdgeTraverser.EdgeAction
-
Enters the target if it is unvisited, and searches from it before the next edge; for any other target, the same as
DfsEdgeTraverser.EdgeAction.SKIP. - DfsEdgeTraverser - Class in com.kobayami.graphity
-
The base class of a depth-first search of your own over a
Graph, with a hook for every edge. - DfsEdgeTraverser(Graph) - Constructor for class com.kobayami.graphity.DfsEdgeTraverser
-
Creates a traverser for
graph, with no node visited. - DfsEdgeTraverser.EdgeAction - Enum Class in com.kobayami.graphity
-
What the search does with an edge that
visitEdgereports. - DfsEdgeTraverser.TargetState - Enum Class in com.kobayami.graphity
-
The state of the target of an edge when
visitEdgereports the edge. - DfsTraverser - Class in com.kobayami.graphity
-
The base class of a depth-first search of your own over a
Graph. - DfsTraverser(Graph) - Constructor for class com.kobayami.graphity.DfsTraverser
-
Creates a traverser for
graph, with no node visited. - diff(Graph, Graph) - Static method in class com.kobayami.graphity.Graphs
-
Returns the edges added and removed between
beforeandafter. - direction(MermaidWriter.Direction) - Method in class com.kobayami.graphity.mermaid.MermaidWriter
-
Sets the direction of the flowchart; without a call, it is
MermaidWriter.Direction.TOP_DOWN. - distanceOf(int) - Method in class com.kobayami.graphity.BfsDistances
-
Returns the distance of
node, or-1if no source reaches it. - dominanceFrontiers(Dominators) - Static method in class com.kobayami.graphity.controlflow.ControlFlow
-
Returns the dominance frontiers as a graph: an edge
n -> mfor every nodemin the dominance frontier ofn. - Dominators - Class in com.kobayami.graphity
-
The dominators of a graph with one or more entries, such as the control flow of a method, given by the immediate dominator of every node.
- dominatorTree(Dominators) - Static method in class com.kobayami.graphity.Graphs
-
Returns the dominator tree of
dominatorsas a graph, with an edged -> nfor every nodenwhose immediate dominator isd. - DotWriter - Class in com.kobayami.graphity.dot
-
A writer of DOT (the language of Graphviz) that labels and styles a graph with the caller's data by node ID and edge index.
- DOUBLE_CIRCLE - Enum constant in enum class com.kobayami.graphity.mermaid.MermaidWriter.Shape
-
A double circle,
(((...))).
E
- edgeAttributes(AttributeHook) - Method in class com.kobayami.graphity.dot.DotWriter
-
Sets the hook that adds DOT attributes, such as
colororstyle, to each edge, by edge index. - EdgeConsumer - Interface in com.kobayami.graphity
-
An action on an edge, given its source, target and edge index: the callback of
Graph.forEachEdge(EdgeConsumer). - edgeCount() - Method in class com.kobayami.graphity.EdgePartition
-
Returns the number of edges of the partitioned graph, in a group or not.
- edgeCount() - Method in class com.kobayami.graphity.Graph
-
Returns the number of edges.
- edgeIndexOf(int, int) - Method in class com.kobayami.graphity.Graph
-
Returns the edge index of the edge
source -> target, or-1if there is none. - edgeIndices() - Method in class com.kobayami.graphity.Edges
-
Returns the edge index of each edge in the graph the algorithm ran on, by position.
- edgeLabel(IntFunction) - Method in class com.kobayami.graphity.dot.DotWriter
-
Sets the label of each edge, by edge index;
nullleaves an edge unlabeled. - edgeLabel(IntFunction) - Method in class com.kobayami.graphity.mermaid.MermaidWriter
-
Sets the label of each edge, by edge index;
nullleaves an edge unlabeled. - edgeMapping(Graph, Graph, NodeMapping) - Static method in class com.kobayami.graphity.Graphs
-
Returns the edge mapping from
newGraphtooldGraphthat goes with the node mappingnewToOld. - EdgeMapping - Class in com.kobayami.graphity
-
A mapping from the edge indices of one graph to those of another, to carry data on edges over to a subgraph, a renumbered graph or the transposed graph.
- edgePartition(Graph, NodePartition) - Static method in class com.kobayami.graphity.Graphs
-
Returns the edge partition that goes with the node partition
partition, from the edges of the partitioned graph to the edges ofcondensedGraph. - EdgePartition - Class in com.kobayami.graphity
-
A partition of the edges of a graph into groups: the edges behind each edge of a condensed graph, or the blocks of a graph.
- Edges - Class in com.kobayami.graphity
-
A list of edges of a graph, each with its source, target and edge index.
- edgesOf(int) - Method in class com.kobayami.graphity.EdgePartition
-
Returns the edge indices in group
groupId, in ascending order. - edgeSource(int) - Method in class com.kobayami.graphity.Graph
-
Returns the source of edge
edgeIndex. - edgeStyle(IntFunction) - Method in class com.kobayami.graphity.mermaid.MermaidWriter
-
Sets the style of each edge, by edge index, written as a
linkStylestatement;nullleaves an edge in the default style. - edgeTarget(int) - Method in class com.kobayami.graphity.Graph
-
Returns the target of edge
edgeIndex. - EdgeType - Enum Class in com.kobayami.graphity
-
The type of an edge in a DFS (depth-first search), as
EdgeTypesclassifies the edges of a graph. - EdgeTypes - Class in com.kobayami.graphity
-
The type of every edge of a graph in a depth-first search: tree, back, forward or cross edge, as
EdgeTypedefines them. - EMPTY - Static variable in class com.kobayami.graphity.SortedIntView
-
An empty view.
- enqueue(int) - Method in class com.kobayami.graphity.FrontierTraverser
-
Puts
nodeinto the frontier and marks it visited, unless it is visited already. - enqueueChildren(int) - Method in class com.kobayami.graphity.FrontierTraverser
-
Puts the out-nodes of
nodethat are not visited yet into the frontier, in ascending order, and marks them visited. - ensureEdgeCapacity(int) - Method in class com.kobayami.graphity.GraphBuilder
-
Makes room for
totalEdgesedges in total, so that adding up to that many allocates nothing more. - enterNode(int) - Method in class com.kobayami.graphity.DfsEdgeTraverser
-
Called when the search reaches
node, before its out-edges: the preorder hook. - enterNode(int) - Method in class com.kobayami.graphity.DfsTraverser
-
Called when the search reaches
node, before its out-nodes: the preorder hook. - entriesOf(int) - Method in class com.kobayami.graphity.controlflow.Loops
-
Returns the entries of
loop, in ascending order. - equals(Object) - Method in class com.kobayami.graphity.Graph
-
Returns whether
objis a graph with the same nodes and edges. - equals(Object) - Method in class com.kobayami.graphity.SortedIntView
-
Returns whether
otheris a list with the same values in the same order, as theListcontract defines it.
F
- findCycle(Graph) - Static method in class com.kobayami.graphity.Graphs
-
Returns the nodes of a cycle of
graphin the order of its edges, or an empty list ifgraphis a DAG. - FINISHED - Enum constant in enum class com.kobayami.graphity.DfsEdgeTraverser.TargetState
-
The search has reached the target and left it, or a stopped run left it on its path.
- first() - Method in class com.kobayami.graphity.SortedIntView
-
Returns the first value, which is the smallest.
- forEach(IntConsumer) - Method in class com.kobayami.graphity.SortedIntView
-
Calls
actionfor every value, in ascending order. - forEachEdge(EdgeConsumer) - Method in class com.kobayami.graphity.Graph
-
Calls
actionfor every edge with its source, target and edge index, in edge index order. - forPermutation(IntList) - Static method in class com.kobayami.graphity.NodeMapping
-
Returns a mapping that numbers the nodes in the given order, from new to old node IDs.
- forSubgraph(int...) - Static method in class com.kobayami.graphity.NodeMapping
-
Returns a mapping from the nodes of a subgraph to the selected nodes, given as node IDs.
- forSubgraph(IntList) - Static method in class com.kobayami.graphity.NodeMapping
-
Returns a mapping from the nodes of a subgraph to the selected nodes, given as a list.
- forSubgraph(BitSet) - Static method in class com.kobayami.graphity.NodeMapping
-
Returns a mapping from the nodes of a subgraph to the selected nodes, given as the set bits of
selected. - FORWARD - Enum constant in enum class com.kobayami.graphity.EdgeType
-
An edge to a descendant of its source in the DFS forest, other than a tree edge.
- frontierOf(IntList) - Method in class com.kobayami.graphity.controlflow.IteratedDominanceFrontier
-
Returns the iterated dominance frontier of
nodes, in ascending order. - FrontierTraverser - Class in com.kobayami.graphity
-
The base class of a breadth-first search of your own over a
Graph, or of any search that works off a queue of nodes and chooses which nodes enter it. - FrontierTraverser(Graph) - Constructor for class com.kobayami.graphity.FrontierTraverser
-
Creates a traverser for
graph, with no node visited. - Further references - Section in Overview
G
- gather(double[]) - Method in class com.kobayami.graphity.EdgeMapping
-
Returns
valuesrenumbered by this mapping, asEdgeMapping.gather(int[])does. - gather(double[]) - Method in class com.kobayami.graphity.NodeMapping
-
Returns
valuesrenumbered by this mapping, asNodeMapping.gather(int[])does. - gather(int[]) - Method in class com.kobayami.graphity.EdgeMapping
-
Returns
valuesrenumbered by this mapping: the value at positioniof the result isvalues[get(i)], or0if edgeiis not mapped. - gather(int[]) - Method in class com.kobayami.graphity.NodeMapping
-
Returns
valuesrenumbered by this mapping: the value at positioniof the result isvalues[get(i)], or0ifiis not mapped. - gather(long[]) - Method in class com.kobayami.graphity.EdgeMapping
-
Returns
valuesrenumbered by this mapping, asEdgeMapping.gather(int[])does. - gather(long[]) - Method in class com.kobayami.graphity.NodeMapping
-
Returns
valuesrenumbered by this mapping, asNodeMapping.gather(int[])does. - gather(T[], T[]) - Method in class com.kobayami.graphity.EdgeMapping
-
Writes
valuesrenumbered by this mapping intonewValues, for objects. - gather(T[], T[]) - Method in class com.kobayami.graphity.NodeMapping
-
Writes
valuesrenumbered by this mapping intonewValues, for objects such as names. - get(int) - Method in class com.kobayami.graphity.IndexMapping
-
Returns the index that
idmaps to, or-1ifidis not mapped. - getElements(int, int[], int, int) - Method in class com.kobayami.graphity.SortedIntView
-
Copies
lengthvalues, from positionsrcOffseton, intodestatdestOffset. - getInt(int) - Method in class com.kobayami.graphity.SortedIntView
-
Returns the value at position
index. - graph - Variable in class com.kobayami.graphity.DfsEdgeTraverser
-
The graph that this traverser searches.
- graph - Variable in class com.kobayami.graphity.DfsTraverser
-
The graph that this traverser searches.
- graph - Variable in class com.kobayami.graphity.FrontierTraverser
-
The graph that this traverser searches.
- graph() - Method in class com.kobayami.graphity.Dominators
-
Returns the graph these dominators were computed on, for analyses that need both, such as dominance frontiers.
- Graph - Class in com.kobayami.graphity
-
A directed graph, which is the input of the algorithms in this library.
- graphAttribute(String, String) - Method in class com.kobayami.graphity.dot.DotWriter
-
Sets an attribute of the graph, such as
rankdirtoLR. - GraphBuilder - Class in com.kobayami.graphity
-
A builder for a
Graph, from nodes and edges added in any order. - GraphBuilder() - Constructor for class com.kobayami.graphity.GraphBuilder
-
Creates an empty builder, without nodes or edges.
- GraphDiff - Class in com.kobayami.graphity
-
The edges added and removed between two graphs over the same nodes, as
Graphs.diff(Graph, Graph)returns them. - Graphs - Section in package com.kobayami.graphity
- Graphs - Class in com.kobayami.graphity
-
Operations on graphs, in five families: derived graphs, edge mappings, node sets, shape checks, and a graph as text, hash or diff.
- groupCount() - Method in class com.kobayami.graphity.IndexPartition
-
Returns the number of groups.
H
- hashCode() - Method in class com.kobayami.graphity.Graph
-
Returns a hash code over the nodes and edges, consistent with
Graph.equals(Object). - hashCode() - Method in class com.kobayami.graphity.SortedIntView
-
Returns a hash code over the values, as the
Listcontract defines it. - hasInNode(int, int) - Method in class com.kobayami.graphity.BiAdjacentGraph
-
Returns whether the edge
inNode -> nodeexists. - hasNeighbor(int, int) - Method in class com.kobayami.graphity.BiAdjacentGraph
-
Returns whether
neighboris a neighbor ofnode. - hasOutNode(int, int) - Method in class com.kobayami.graphity.Graph
-
Returns whether the edge
node -> outNodeexists. - headerOf(int) - Method in class com.kobayami.graphity.controlflow.Loops
-
Returns the header of
loop. - HEXAGON - Enum constant in enum class com.kobayami.graphity.mermaid.MermaidWriter.Shape
-
A hexagon,
{{...}}.
I
- immediateDominatorOf(int) - Method in class com.kobayami.graphity.Dominators
-
Returns the immediate dominator of
node, or-1if it has none. - inAdjacency(BiAdjacentGraph) - Static method in class com.kobayami.graphity.Csr
-
Returns the in-nodes of all nodes, node after node.
- inAdjacencyStart(BiAdjacentGraph) - Static method in class com.kobayami.graphity.Csr
-
Returns where the in-nodes of each node start in
Csr.inAdjacency(BiAdjacentGraph), followed byedgeCount. - inDegree(int) - Method in class com.kobayami.graphity.BiAdjacentGraph
-
Returns the in-degree of
node. - indexCount() - Method in class com.kobayami.graphity.IndexMapping
-
Returns the number of indices this mapping maps from, mapped or not.
- IndexMapping - Class in com.kobayami.graphity
-
A mapping from the indices
0..indexCount()-1to the indices of another numbering. - indexOf(int) - Method in class com.kobayami.graphity.SortedIntView
-
Returns the position of
value, or-1if the view does not contain it. - IndexPartition - Class in com.kobayami.graphity
-
A partition of indices into groups: the common base of
NodePartitionandEdgePartition. - indicesOf(int) - Method in class com.kobayami.graphity.IndexPartition
-
Returns the indices in group
groupId, in ascending order. - innermostLoopOf(int) - Method in class com.kobayami.graphity.controlflow.Loops
-
Returns the innermost loop that contains
node, or-1if it lies in no loop. - inNodes(int) - Method in class com.kobayami.graphity.BiAdjacentGraph
-
Returns the in-nodes of
nodein ascending order. - inverted(int) - Method in class com.kobayami.graphity.EdgeMapping
-
Returns the inverse mapping, which maps
get(e)back toe. - inverted(int) - Method in class com.kobayami.graphity.NodeMapping
-
Returns the inverse mapping, which maps
get(node)back tonode. - isAncestorOf(int, int) - Method in class com.kobayami.graphity.Ancestry
-
Returns whether
nodeis an ancestor ofdescendant: whether it lies on the path from the root of its tree todescendant. - isAncestorOf(int, int) - Method in class com.kobayami.graphity.PreorderAncestry
-
Returns whether
nodeis an ancestor ofdescendant: whether it lies on the path from the root of its tree todescendant. - isBipartite(Graph) - Static method in class com.kobayami.graphity.Graphs
-
Returns whether
graphis bipartite: its nodes split into two sets such that every edge runs from one set to the other. - isDag(Graph) - Static method in class com.kobayami.graphity.Graphs
-
Returns whether
graphis a DAG: a graph without cycles. - isEmpty() - Method in class com.kobayami.graphity.Edges
-
Returns whether there are no edges.
- isEmpty() - Method in class com.kobayami.graphity.Graph
-
Returns whether this graph has no nodes.
- isEmpty() - Method in class com.kobayami.graphity.GraphDiff
-
Returns whether no edge was added or removed, that is, whether the two graphs are equal.
- isForest(Graph) - Static method in class com.kobayami.graphity.Graphs
-
Returns whether
graphis a forest: a DAG in which every node has in-degree at most 1, so that the edges point away from the root nodes. - isInLoop(int, int) - Method in class com.kobayami.graphity.controlflow.Loops
-
Returns whether
nodelies inloop, directly or in a loop nested in it. - isMapped(int) - Method in class com.kobayami.graphity.IndexMapping
-
Returns whether
idis mapped. - isOnStack(int) - Method in class com.kobayami.graphity.DfsEdgeTraverser
-
Returns whether
nodeis on the stack of the search, that is, on the current path. - isOnStack(int) - Method in class com.kobayami.graphity.DfsTraverser
-
Returns whether
nodeis on the stack of the search, that is, on the current path. - isPartial() - Method in class com.kobayami.graphity.IndexMapping
-
Returns whether some index is not mapped.
- isPath(Graph) - Static method in class com.kobayami.graphity.Graphs
-
Returns whether
graphis a path: a tree in which every node has out-degree at most 1. - isReachable(int) - Method in class com.kobayami.graphity.BfsDistances
-
Returns whether a source reaches
node. - isReachable(int) - Method in class com.kobayami.graphity.Dominators
-
Returns whether
nodeis reachable from an entry. - isReducible() - Method in class com.kobayami.graphity.controlflow.Loops
-
Returns whether the graph is reducible: whether every loop has its header as its only entry.
- isRootNode(int) - Method in class com.kobayami.graphity.BiAdjacentGraph
-
Returns whether
nodeis a root node. - isStronglyConnected() - Method in class com.kobayami.graphity.Sccs
-
Returns whether the graph is strongly connected: whether it has at most one SCC.
- isStronglyConnected(Graph) - Static method in class com.kobayami.graphity.Graphs
-
Returns whether
graphis strongly connected: every node reaches every other along the edges. - isTree(Graph) - Static method in class com.kobayami.graphity.Graphs
-
Returns whether
graphis a tree: a forest with at most one root node. - isUndirectedForest(Graph) - Static method in class com.kobayami.graphity.Graphs
-
Returns whether
graphis a forest when read as undirected: without cycles. - isUndirectedTree(Graph) - Static method in class com.kobayami.graphity.Graphs
-
Returns whether
graphis a tree when read as undirected: connected and without cycles. - isVisited(int) - Method in class com.kobayami.graphity.DfsEdgeTraverser
-
Returns whether the search has reached
node, in this run or in an earlier one. - isVisited(int) - Method in class com.kobayami.graphity.DfsTraverser
-
Returns whether the search has reached
node, in this run or in an earlier one. - isVisited(int) - Method in class com.kobayami.graphity.FrontierTraverser
-
Returns whether
nodeis visited: it has entered the frontier, or a subclass has marked it inFrontierTraverser.visited. - isWeaklyConnected(Graph) - Static method in class com.kobayami.graphity.Graphs
-
Returns whether
graphis weakly connected: connected when the direction of the edges is ignored. - IteratedDominanceFrontier - Class in com.kobayami.graphity.controlflow
-
The iterated dominance frontiers of a control-flow graph, which tell where SSA (static single assignment) form places phi-nodes.
L
- last() - Method in class com.kobayami.graphity.SortedIntView
-
Returns the last value, which is the largest.
- lastIndexOf(int) - Method in class com.kobayami.graphity.SortedIntView
-
Returns the position of
value, or-1if the view does not contain it. - leaveLevel(int) - Method in class com.kobayami.graphity.FrontierTraverser
-
Called after the last node of a level has been visited, before the first node of the next level.
- leaveNode(int) - Method in class com.kobayami.graphity.DfsEdgeTraverser
-
Called when the search leaves
node, after all its out-edges have been reported and searched: the postorder hook. - leaveNode(int) - Method in class com.kobayami.graphity.DfsTraverser
-
Called when the search leaves
node, after it has searched from all its out-nodes: the postorder hook. - LEFT_RIGHT - Enum constant in enum class com.kobayami.graphity.mermaid.MermaidWriter.Direction
-
Left to right,
LR. - levelCount() - Method in class com.kobayami.graphity.TopOrderAndLevels
-
Returns the number of levels, or
0for a graph without nodes. - levelOf(int) - Method in class com.kobayami.graphity.TopOrderAndLevels
-
Returns the level of
node. - levels() - Method in class com.kobayami.graphity.TopOrderAndLevels
-
Returns the level of every node, by node ID.
- listIterator(int) - Method in class com.kobayami.graphity.SortedIntView
-
Returns a list iterator over the values, starting at position
index. - loopCount() - Method in class com.kobayami.graphity.controlflow.Loops
-
Returns the number of loops.
- loopDepthOf(int) - Method in class com.kobayami.graphity.controlflow.Loops
-
Returns the loop depth of
node: the number of loops that contain it. - Loops - Class in com.kobayami.graphity.controlflow
-
The loop nesting forest of a control-flow graph: its loops, how they nest and where each of them is entered, irreducible loops included.
- lowestCommonAncestorOf(int, int) - Method in class com.kobayami.graphity.Ancestry
-
Returns the lowest common ancestor of
aandb, or-1if they are in different trees.
M
- mappedCount() - Method in class com.kobayami.graphity.IndexMapping
-
Returns the number of indices that are mapped; in a partition, the number of indices that belong to a group.
- maxDistance() - Method in class com.kobayami.graphity.BfsDistances
-
Returns the largest distance of a node that a source reaches, or
-1if there are no sources. - MermaidWriter - Class in com.kobayami.graphity.mermaid
-
A writer of Mermaid flowcharts that labels and styles a graph with the caller's data by node ID and edge index.
- MermaidWriter.Direction - Enum Class in com.kobayami.graphity.mermaid
-
The direction of a flowchart.
- MermaidWriter.Shape - Enum Class in com.kobayami.graphity.mermaid
-
The shape of a node, with the brackets Mermaid draws it with.
N
- neighbors(int) - Method in class com.kobayami.graphity.BiAdjacentGraph
-
Returns the neighbors of
nodein ascending order and without duplicates. - nodeAttributes(AttributeHook) - Method in class com.kobayami.graphity.dot.DotWriter
-
Sets the hook that adds DOT attributes, such as
shape,colororstyle, to each node, by node ID. - nodeClass(IntFunction) - Method in class com.kobayami.graphity.mermaid.MermaidWriter
-
Sets the class of each node, by node ID;
nullassigns none. - nodeCount() - Method in class com.kobayami.graphity.Graph
-
Returns the number of nodes.
- nodeCount() - Method in class com.kobayami.graphity.NodePartition
-
Returns the number of nodes of the partitioned graph, in a group or not.
- nodeFilter(IntPredicate) - Method in class com.kobayami.graphity.dot.DotWriter
-
Restricts the text to the nodes that
includeaccepts and the edges between them. - nodeFilter(IntPredicate) - Method in class com.kobayami.graphity.mermaid.MermaidWriter
-
Restricts the text to the nodes that
includeaccepts and the edges between them. - nodeLabel(IntFunction) - Method in class com.kobayami.graphity.dot.DotWriter
-
Sets the label of each node, by node ID;
nullleaves a node unlabeled, and Graphviz then shows its node ID. - nodeLabel(IntFunction) - Method in class com.kobayami.graphity.mermaid.MermaidWriter
-
Sets the label of each node, by node ID;
nullshows the name of the node, such asn4. - NodeMapping - Class in com.kobayami.graphity
-
A mapping from the node IDs of one graph to those of another, to extract a subgraph or to renumber the nodes of a graph.
- NodePartition - Class in com.kobayami.graphity
-
A partition of the nodes of a graph into groups, such as its components.
- nodes() - Method in class com.kobayami.graphity.Graph
-
Returns the node IDs
0..nodeCount()-1as a stream, in ascending order. - nodeShape(IntFunction) - Method in class com.kobayami.graphity.mermaid.MermaidWriter
-
Sets the shape of each node, by node ID;
nulldraws a rectangle. - nodesOf(int) - Method in class com.kobayami.graphity.NodePartition
-
Returns the nodes in group
groupId, in ascending order.
O
- of(int[]) - Static method in class com.kobayami.graphity.NodeMapping
-
Returns the mapping that maps each node
itomapping[i], and leaves it unmapped where that is-1. - of(int[], int[]) - Static method in class com.kobayami.graphity.Graph
-
Returns a graph from the two arrays of its CSR layout, as
Csrreturns them andGraph.writeTo(OutputStream)writes them. - of(Ancestry) - Static method in class com.kobayami.graphity.PreorderAncestry
-
Returns a
PreorderAncestryfor the forest ofancestry. - of(BiAdjacentGraph, int) - Static method in class com.kobayami.graphity.controlflow.Loops
-
Returns the loop nesting forest of
graphwith one entry. - of(BiAdjacentGraph, int) - Static method in class com.kobayami.graphity.Dominators
-
Returns the dominators of
graphwith the single entryentry. - of(BiAdjacentGraph, IntList) - Static method in class com.kobayami.graphity.controlflow.Loops
-
Returns the loop nesting forest of
graphwith the given entries. - of(BiAdjacentGraph, IntList) - Static method in class com.kobayami.graphity.Dominators
-
Returns the dominators of
graphwith the given entries. - of(Dominators) - Static method in class com.kobayami.graphity.Ancestry
-
Returns the ancestor index of the dominator tree of
dominators, in which the ancestors of a node are its dominators. - of(Dominators) - Static method in class com.kobayami.graphity.controlflow.IteratedDominanceFrontier
-
Returns the iterated dominance frontiers of the graph that
dominatorswere computed on, ready for queries. - of(EdgeTypes, EdgeType) - Static method in class com.kobayami.graphity.Edges
-
Returns the edges of one type from an edge classification, in edge index order.
- of(Graph) - Static method in class com.kobayami.graphity.Ancestry
-
Returns the ancestor index of
forest, whose edges point from parent to child. - of(Graph) - Static method in class com.kobayami.graphity.BackEdges
-
Returns the back edges of
graph, in the order in which the search finds them. - of(Graph) - Static method in class com.kobayami.graphity.BiAdjacentGraph
-
Returns a
BiAdjacentGraphwith the nodes and edges ofgraph, building its in-adjacency. - of(Graph) - Static method in class com.kobayami.graphity.dot.DotWriter
-
Returns a writer for
graph, with no labels, attributes, clusters or filter yet. - of(Graph) - Static method in class com.kobayami.graphity.EdgeTypes
-
Returns the type of every edge of
graph, from one depth-first search. - of(Graph) - Static method in class com.kobayami.graphity.mermaid.MermaidWriter
-
Returns a writer for
graph, top down, with no labels, shapes, classes, clusters or filter yet. - of(Graph) - Static method in class com.kobayami.graphity.TopOrder
-
Returns the nodes of
graphin topological order: for every edgeu -> v,ucomes beforev. - of(Graph) - Static method in class com.kobayami.graphity.TopOrderAndLevels
-
Returns the topological order and the levels of
graph. - of(Graph, int) - Static method in class com.kobayami.graphity.BfsDistances
-
Returns the distances of the nodes of
graphfromsource. - of(Graph, int[], int) - Static method in class com.kobayami.graphity.NodePartition
-
Returns a partition of the nodes of
graphinto groups of the caller's choice. - of(Graph, IntList) - Static method in class com.kobayami.graphity.BfsDistances
-
Returns the distances of the nodes of
graphfrom the nearest ofsources. - ON_STACK - Enum constant in enum class com.kobayami.graphity.DfsEdgeTraverser.TargetState
-
The target is on the current path - the source itself or one of its ancestors in the search - so the edge closes a cycle.
- order() - Method in class com.kobayami.graphity.TopOrderAndLevels
-
Returns the nodes in topological order, level by level: for every edge
u -> v,ucomes beforev. - Orders, cycles and traversals - Section in package com.kobayami.graphity
- outAdjacency(Graph) - Static method in class com.kobayami.graphity.Csr
-
Returns the out-nodes of all nodes, node after node, at the positions of their edge indices.
- outAdjacencyStart(Graph) - Static method in class com.kobayami.graphity.Csr
-
Returns where the out-nodes of each node start in
Csr.outAdjacency(Graph), followed byedgeCount. - outDegree(int) - Method in class com.kobayami.graphity.Graph
-
Returns the out-degree of
node. - outEdgeEnd(int) - Method in class com.kobayami.graphity.Graph
-
Returns the end, exclusive, of the edge index range of the out-edges of
node; seeGraph.outEdgeStart(int). - outEdgeStart(int) - Method in class com.kobayami.graphity.Graph
-
Returns the start of the edge index range of the out-edges of
node. - outNodes(int) - Method in class com.kobayami.graphity.Graph
-
Returns the out-nodes of
nodein ascending order.
P
- Packages - Section in Overview
- parentOf(int) - Method in class com.kobayami.graphity.Ancestry
-
Returns the parent of
node, or-1if it is the root of its tree. - parentOf(int) - Method in class com.kobayami.graphity.controlflow.Loops
-
Returns the loop that immediately encloses
loop, or-1for an outermost loop. - pathTo(int) - Method in class com.kobayami.graphity.BfsDistances
-
Returns a shortest path to
nodefrom the nearest source, or an empty list if no source reachesnode. - preorder() - Method in class com.kobayami.graphity.PreorderAncestry
-
Returns all nodes in preorder: the roots in ascending order, and the children of each node in ascending order.
- PreorderAncestry - Class in com.kobayami.graphity
-
An
Ancestrythat also holds the preorder of its forest, for an ancestor test in O(1) and the nodes of every subtree. - preorderIndexOf(int) - Method in class com.kobayami.graphity.PreorderAncestry
-
Returns the position of
nodeinPreorderAncestry.preorder().
R
- Reachability and distances - Section in package com.kobayami.graphity
- reachableFrom(Graph, int) - Static method in class com.kobayami.graphity.Graphs
-
Returns the nodes reachable from
source, in ascending order and withsourceincluded. - reachableFrom(Graph, IntList) - Static method in class com.kobayami.graphity.Graphs
-
Returns the nodes reachable from at least one of
sources, in ascending order and with the sources included. - readFrom(InputStream) - Static method in class com.kobayami.graphity.Graph
-
Reads a graph that
Graph.writeTo(OutputStream)wrote, with the same node IDs and edge indices. - RECTANGLE - Enum constant in enum class com.kobayami.graphity.mermaid.MermaidWriter.Shape
-
A rectangle,
[...]. - reduce(double[], double, DoubleBinaryOperator) - Method in class com.kobayami.graphity.IndexPartition
-
Returns one value per group, combined from the values of its indices, as
IndexPartition.reduce(int[], int, IntBinaryOperator)does. - reduce(int[], int, IntBinaryOperator) - Method in class com.kobayami.graphity.IndexPartition
-
Returns one value per group, combined from the values of its indices.
- reduce(long[], long, LongBinaryOperator) - Method in class com.kobayami.graphity.IndexPartition
-
Returns one value per group, combined from the values of its indices, as
IndexPartition.reduce(int[], int, IntBinaryOperator)does. - reduce(T[], T[], BinaryOperator) - Method in class com.kobayami.graphity.IndexPartition
-
Writes one value per group into
groupValues, combined from the values of the indices of that group. - reindex(Graph) - Static method in class com.kobayami.graphity.NodeMapping
-
Returns a mapping that numbers the nodes of
graphin depth-first preorder, from new to old node IDs. - remapped(Graph, NodeMapping) - Static method in class com.kobayami.graphity.Graphs
-
Returns
graphwith its nodes renumbered bynewToOld: nodeiof the result is nodenewToOld.get(i)ofgraph. - removedEdges() - Method in class com.kobayami.graphity.GraphDiff
-
Returns the edges of the older graph that the newer one does not have, with their edge indices in the older graph, in edge index order.
- RHOMBUS - Enum constant in enum class com.kobayami.graphity.mermaid.MermaidWriter.Shape
-
A rhombus,
{...}. - RIGHT_LEFT - Enum constant in enum class com.kobayami.graphity.mermaid.MermaidWriter.Direction
-
Right to left,
RL. - rootNodes(BiAdjacentGraph) - Static method in class com.kobayami.graphity.Graphs
-
Returns the root nodes of
graphin ascending order. - ROUNDED - Enum constant in enum class com.kobayami.graphity.mermaid.MermaidWriter.Shape
-
A rectangle with rounded corners,
(...). - run() - Method in class com.kobayami.graphity.DfsEdgeTraverser
-
Searches from every node not visited yet, in ascending order, until every node is visited.
- run() - Method in class com.kobayami.graphity.DfsTraverser
-
Searches from every node not visited yet, in ascending order, until every node is visited.
- run() - Method in class com.kobayami.graphity.FrontierTraverser
-
Searches from every node not visited yet, in ascending order, until every node is visited.
- run(int) - Method in class com.kobayami.graphity.DfsEdgeTraverser
-
Searches from
startNode, visiting the nodes it reaches that are not visited yet. - run(int) - Method in class com.kobayami.graphity.DfsTraverser
-
Searches from
startNode, visiting the nodes it reaches that are not visited yet. - run(int) - Method in class com.kobayami.graphity.FrontierTraverser
-
Searches from
startNodeand from the nodes enqueued before the call, visiting the nodes they reach that are not visited yet. - run(IntList) - Method in class com.kobayami.graphity.DfsEdgeTraverser
-
Searches from each of
startNodesin list order, skipping those visited already. - run(IntList) - Method in class com.kobayami.graphity.DfsTraverser
-
Searches from each of
startNodesin list order, skipping those visited already. - run(IntList) - Method in class com.kobayami.graphity.FrontierTraverser
-
Searches from
startNodesand from the nodes enqueued before the call, visiting the nodes they reach that are not visited yet.
S
- sccCount() - Method in class com.kobayami.graphity.Sccs
-
Returns the number of SCCs.
- sccOf(int) - Method in class com.kobayami.graphity.Sccs
-
Returns the SCC ID of
node. - Sccs - Class in com.kobayami.graphity
-
The SCCs (strongly connected components) of a graph, as
Components.sccsOf(Graph)returns them. - sccsOf(Graph) - Static method in class com.kobayami.graphity.Components
-
Returns the SCCs of
graph. - size() - Method in class com.kobayami.graphity.SortedIntView
-
Returns the number of values.
- sizeOf(int) - Method in class com.kobayami.graphity.IndexPartition
-
Returns the number of indices in group
groupId. - SKIP - Enum constant in enum class com.kobayami.graphity.DfsEdgeTraverser.EdgeAction
-
Goes on with the next edge of the source.
- SortedIntView - Class in com.kobayami.graphity
-
A list of
intvalues in ascending order and without duplicates, as a view of a range of an array. - sourceNodes() - Method in class com.kobayami.graphity.Edges
-
Returns the source of each edge, by position.
- spliterator() - Method in class com.kobayami.graphity.SortedIntView
-
Returns a spliterator over the values, which reports them as sorted, distinct and immutable.
- STADIUM - Enum constant in enum class com.kobayami.graphity.mermaid.MermaidWriter.Shape
-
A stadium,
([...]). - stop() - Method in class com.kobayami.graphity.DfsEdgeTraverser
-
Stops the run in progress: the run returns as soon as the hook that calls this method returns, without calling another hook.
- stop() - Method in class com.kobayami.graphity.DfsTraverser
-
Stops the run in progress: the run returns as soon as the hook that calls this method returns, without calling another hook.
- stop() - Method in class com.kobayami.graphity.FrontierTraverser
-
Stops the run in progress: the run returns as soon as the hook that calls this method returns, without calling another hook.
- STOP - Enum constant in enum class com.kobayami.graphity.DfsEdgeTraverser.EdgeAction
-
Ends the run, as
stop()does. - strongArticulationPoints() - Method in class com.kobayami.graphity.StrongConnectivity
-
Returns the strong articulation points, in ascending order.
- strongBridges() - Method in class com.kobayami.graphity.StrongConnectivity
-
Returns the strong bridges, in edge index order.
- StrongConnectivity - Class in com.kobayami.graphity
-
The strong bridges and strong articulation points of a graph, as
Components.strongConnectivityOf(BiAdjacentGraph)returns them. - strongConnectivityOf(BiAdjacentGraph) - Static method in class com.kobayami.graphity.Components
-
Returns the strong bridges and strong articulation points of
graph. - subList(int, int) - Method in class com.kobayami.graphity.SortedIntView
-
Returns the values at the positions
fromIndex..toIndex-1as a view of the same array, not a copy. - SUBROUTINE - Enum constant in enum class com.kobayami.graphity.mermaid.MermaidWriter.Shape
-
A subroutine box,
[[...]]. - subtreeOf(int) - Method in class com.kobayami.graphity.PreorderAncestry
-
Returns the nodes of the subtree of
node, in preorder, starting withnode. - subtreeSizeOf(int) - Method in class com.kobayami.graphity.PreorderAncestry
-
Returns the number of nodes in the subtree of
node,nodeincluded.
T
- targetNodes() - Method in class com.kobayami.graphity.Edges
-
Returns the target of each edge, by position.
- toArray(int[]) - Method in class com.kobayami.graphity.SortedIntView
-
Returns the values in
destfrom position0on, or in a new array ifdestisnullor too short. - toIntArray() - Method in class com.kobayami.graphity.SortedIntView
-
Returns the values as a new array.
- TOP_DOWN - Enum constant in enum class com.kobayami.graphity.mermaid.MermaidWriter.Direction
-
Top to bottom,
TD. - topologyHash(Graph) - Static method in class com.kobayami.graphity.Graphs
-
Returns a 64-bit hash of the nodes and edges of
graph, consistent withGraph.equals(Object). - TopOrder - Class in com.kobayami.graphity
-
The topological order of a DAG (directed acyclic graph), in which every node comes before its out-nodes.
- TopOrderAndLevels - Class in com.kobayami.graphity
-
A topological order of a DAG (directed acyclic graph) with the level of each node.
- toString() - Method in class com.kobayami.graphity.Graph
-
Returns the node and edge counts and the out-nodes of the first nodes, for debuggers and logs.
- toString() - Method in class com.kobayami.graphity.GraphDiff
-
Returns the numbers of added and removed edges, for debuggers and logs.
- transitiveClosure(Graph) - Static method in class com.kobayami.graphity.Graphs
-
Returns the transitive closure of
graph: the same nodes, with an edgeu -> vwherever a path of one or more edges leads fromutov. - transitiveReduction(Graph) - Static method in class com.kobayami.graphity.Graphs
-
Returns the transitive reduction of
dag: the same nodes, keeping each edgeu -> vunless another path leads fromutov. - transposed() - Method in class com.kobayami.graphity.BiAdjacentGraph
-
Returns the transposed graph as a view of this graph's arrays.
- transposedEdgeIndex(int) - Method in class com.kobayami.graphity.BiAdjacentGraph
-
Returns the edge index that edge
edgeIndexhas in the transposed graph. - transposedEdgeMapping(Graph) - Static method in class com.kobayami.graphity.Graphs
-
Returns the edge mapping from the transposed graph of
graphtograph. - TREE - Enum constant in enum class com.kobayami.graphity.EdgeType
-
An edge by which the search reaches its target for the first time: an edge of the forest.
- Trees and dominators - Section in package com.kobayami.graphity
- typeOf(int) - Method in class com.kobayami.graphity.EdgeTypes
-
Returns the type of edge
edgeIndex.
U
- undirected() - Method in class com.kobayami.graphity.dot.DotWriter
-
Switches to the undirected reading of the graph: a
graphwith--edges instead of adigraph. - undirected() - Method in class com.kobayami.graphity.mermaid.MermaidWriter
-
Switches to the undirected reading of the graph: edges without arrowheads.
- uniAdjacentGraph() - Method in class com.kobayami.graphity.BiAdjacentGraph
-
Returns a
Graphwith the same nodes and edges, without the in-adjacency. - uniAdjacentGraph() - Method in class com.kobayami.graphity.Graph
-
Returns a graph with the same nodes and edges, without in-adjacency.
- union(SortedIntView) - Method in class com.kobayami.graphity.SortedIntView
-
Returns the values of this view and
othertogether, in ascending order and without duplicates. - UNVISITED - Enum constant in enum class com.kobayami.graphity.DfsEdgeTraverser.TargetState
-
The search has not reached the target yet.
V
- valueOf(String) - Static method in enum class com.kobayami.graphity.DfsEdgeTraverser.EdgeAction
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.kobayami.graphity.DfsEdgeTraverser.TargetState
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.kobayami.graphity.EdgeType
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.kobayami.graphity.mermaid.MermaidWriter.Direction
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.kobayami.graphity.mermaid.MermaidWriter.Shape
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class com.kobayami.graphity.DfsEdgeTraverser.EdgeAction
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.kobayami.graphity.DfsEdgeTraverser.TargetState
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.kobayami.graphity.EdgeType
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.kobayami.graphity.mermaid.MermaidWriter.Direction
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.kobayami.graphity.mermaid.MermaidWriter.Shape
-
Returns an array containing the constants of this enum class, in the order they are declared.
- viewOf(int[], int, int) - Static method in class com.kobayami.graphity.SortedIntView
-
Returns a view of
array[fromIndex..toIndex-1], which must be strictly ascending. - visited - Variable in class com.kobayami.graphity.FrontierTraverser
-
The visited nodes, one bit per node ID: a bit is set when its node enters the frontier.
- visitEdge(int, int, int, DfsEdgeTraverser.TargetState) - Method in class com.kobayami.graphity.DfsEdgeTraverser
-
Called for each out-edge of a node that the search has entered, with the state of its target; returns what the search does with the edge.
- visitNode(int) - Method in class com.kobayami.graphity.FrontierTraverser
-
Called for each node of the frontier, in the order in which the nodes entered it.
W
- wccsOf(Graph) - Static method in class com.kobayami.graphity.Components
-
Returns the weakly connected components of
graph. - Where to find what - Section in Overview
- Where to start - Section in Overview
- write(Appendable) - Method in class com.kobayami.graphity.dot.DotWriter
-
Writes the graph to
out, as DOT text. - write(Appendable) - Method in class com.kobayami.graphity.mermaid.MermaidWriter
-
Writes the graph to
out, as the text of a Mermaid flowchart. - writeTo(OutputStream) - Method in class com.kobayami.graphity.Graph
-
Writes this graph to
out, forGraph.readFrom(InputStream)to read back with the same node IDs and edge indices. - writeToString() - Method in class com.kobayami.graphity.dot.DotWriter
-
Returns the DOT text of the graph, as
DotWriter.write(Appendable)writes it. - writeToString() - Method in class com.kobayami.graphity.mermaid.MermaidWriter
-
Returns the text of the Mermaid flowchart, as
MermaidWriter.write(Appendable)writes it.
All Classes and Interfaces|All Packages