isle | R Documentation |
The function was written primarilly to recognize DAG islands to allow correct implementation of the function stream.order
and is still early in its development.
isle(G)
G |
Graph object of class |
The function currently allows detection of simple island structures (those that don't contain sub-islands). One of the output objects from the function is a new graph object with island nodes into a single node(s).
Output consists of the following:
test |
Logical indicating whether or not |
island |
List of islands with their nodal components |
input.id |
Neighboring node(s) directly upstream from island(s). |
output.id |
Neighboring node(s) directly downstream from island(s). |
new.graph |
New graph object created from |
island.names |
Names of island nodes created in new output graph (that combines nodes constituing islands into a single node). Follows the naming system |
splits |
The number of islands detected. |
Ken Aho
stream.order
, delete.vertices
, codeadd.vertices, codeadd.edges
G <- graph_from_literal(a --+ c --+ e, b --+ d --+ e --+ f --+ p, g --+ i --+ j --+ m,
i --+ k --+ m, m --+ n --+ o --+ p, h --+ l --+ n, p --+ q --+ r)
plot(G)
isle(G)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.