| Package | Description |
|---|---|
| com.mastfrog.graph |
| Modifier and Type | Method and Description |
|---|---|
IntPath |
IntPath.appending(int value)
Create a new path appending the passed value.
|
IntPath |
IntPath.appending(IntPath other)
Create a new IntPath of this one concatenated with another.
|
IntPath |
IntPath.Builder.build()
Create an IntPath from this builder.
|
IntPath |
IntPath.childPath()
Create a new path, lopping off the first element.
|
static IntPath |
IntPath.of(Collection<? extends Integer> ints) |
static IntPath |
IntPath.of(int... items)
Create an IntPath from an array of ints.
|
static IntPath |
IntPath.ofUnsafe(int... items)
Create an IntPath from an array of ints, using the passed array directly
rather than copying it.
|
IntPath |
IntPath.parentPath()
Create a new path, lopping off the last element.
|
static IntPath |
IntPath.parse(String val)
Creates an IntPath from a comma-delimited list of integers (which may
contain whitespace), such as the output of
toString(). |
IntPath |
IntPath.prepending(int value)
Create a new path prepending the passed value.
|
IntPath |
IntPath.reversed()
Create a new path whose elements are this one's in reverse order.
|
IntPath |
IntPath.subPath(int start,
int end)
Get a subpath.
|
IntPath |
ObjectPath.toIntPath()
Get the IntPath underlying this ObjectPath.
|
| Modifier and Type | Method and Description |
|---|---|
List<IntPath> |
IntGraph.pathsBetween(int src,
int target)
Get a list of all paths between the source and target node, sorted low to
high by length.
|
Optional<IntPath> |
IntGraph.shortestPathBetween(int src,
int target)
Get the shortest path between two nodes in the graph.
|
Optional<IntPath> |
IntGraph.shortestUndirectedPathBetween(int src,
int target)
Get the shortest undirected path between two nodes.
|
List<IntPath> |
IntGraph.undirectedPathsBetween(int src,
int target)
Get a list of all inbound and outbound paths between two nodes.
|
| Modifier and Type | Method and Description |
|---|---|
IntPath |
IntPath.appending(IntPath other)
Create a new IntPath of this one concatenated with another.
|
int |
IntPath.compareTo(IntPath o) |
boolean |
IntPath.contains(IntPath path)
Determine if this path contains the subsequence in the passed path, or is
equal to it.
|
boolean |
IntPath.endsWith(IntPath other)
Determine if this path ends with (or is equal to) another path.
|
boolean |
IntPath.startsWith(IntPath other)
Determine if this path starts with (or is equal to) another path.
|
Copyright © 2010–2020 Mastfrog Technologies. All rights reserved.