Package | Description |
---|---|
com.yworks.yfiles.algorithms | |
com.yworks.yfiles.layout |
Provides essential classes and interfaces that constitute the infrastructure for automatic graph layout generation.
|
Modifier and Type | Interface and Description |
---|---|
interface |
IEdgeCursor
A cursor interface for iterating over edges.
|
interface |
ILineSegmentCursor
This is an interface for a sequence of instances of LineSegment.
|
interface |
INodeCursor
A cursor interface for iterating over nodes.
|
interface |
IPointCursor
This is an interface for a sequence of instances of YPoint.
|
Modifier and Type | Method and Description |
---|---|
static ICursor |
Cursors.concatenate(ICursor c1,
ICursor c2)
Creates a new cursor that provides a logical view on the concatenation of the two given cursors.
|
static <T> ICursor |
Cursors.createCursor(Collection<T> c)
Creates a cursor view of the given collection.
|
ICursor |
YPointPath.cursor()
Get the points in the path.
|
ICursor |
YList.cursor()
Returns a cursor for this list.
|
static ICursor |
Paths.findAllPathsCursor(Graph graph,
Node startNode,
Node endNode,
boolean directed)
A variant of
Paths.findAllPaths(Graph, Node, Node, boolean) , which returns all simple directed or undirected paths between two
given nodes as a special cursor that calculates the next path in the sequence, only when needed. |
static ICursor |
ShortestPaths.kShortestPathsCursor(Graph graph,
IDataProvider costDP,
Node start,
Node end,
int k)
A variant of
ShortestPaths.kShortestPaths(Graph, IDataProvider, Node, Node, int) that returns the result as a special cursor
that calculates the next path in the sequence only when needed. |
Modifier and Type | Method and Description |
---|---|
void |
YList.addAll(ICursor c)
Appends all elements provided by the given cursor to this list.
|
static ICursor |
Cursors.concatenate(ICursor c1,
ICursor c2)
Creates a new cursor that provides a logical view on the concatenation of the two given cursors.
|
void |
LayoutGraphHider.hide(ICursor cursor)
Hides the given elements from the graph.
|
void |
GraphPartitionManager.hide(ICursor cursor)
Hides the given elements from the graph.
|
Object |
YList.removeAt(ICursor c)
Removes the element pointed to by the given YCursor object.
|
static Object[] |
Cursors.toArray(ICursor cursor,
Object[] dest)
Creates or fills an array with the values provided by the cursor.
|
Constructor and Description |
---|
Graph(Graph graph,
ICursor subNodes)
Instantiates a new Graph object as a partial copy of the given graph.
|
YList(ICursor c)
Creates a list that is initialized with the elements provided by the given YCursor object.
|
YList(ICursor c,
IDataProvider predicate)
Creates a list that is initialized with those elements from the given YCursor object for which the given data provider
returns
true upon calling its getBool method. |
Constructor and Description |
---|
DefaultLayoutGraph(LayoutGraph graph,
ICursor nodeSubset)
Creates a new
DefaultLayoutGraph instance which is a copy of the given subgraph. |
LayoutGraph(LayoutGraph graph,
ICursor nodeSubset)
Creates a new
LayoutGraph which is a copy of the given subgraph. |