This function will read in a
graphNEL object and create a
Ragraph object, returning it for use in other functions. The
graph represented by the
Ragraph can be laidout in various formats.
An object of class
The name of the
The type of graph
A list describing subgraphs for the graph parameter
Whether the graph is directed or undirected
How to handle reciprocated edges, defaults to
graph is from the package
edgeMode argument specifies whether the graph is to be laid
out with directed or undirected edges. This parameter defaults to the
edgemode of the
The kind parameter works as follows:
Determine the direction of the graph from the
object. This is the default and the recommended method.
An undirected graph
A directed graph
A strict undirected graph
A strict directed graph
Strict graphs do not allow self arcs or multi-edges.
subGList parameter is a list describing any subgraphs,
where each element represents a subgraph and is itself a list with up
to three elements. The first element,
graph is required and
contains the actual
graph object for the subgraph. The second
cluster is a logical value indicating if this is a
cluster or a
subgraph (a value of
a cluster, which is also the default value if this element is not
specified). In Graphviz, subgraphs are more of an organizational
mechanism, whereas clusters are laid out separately from the main
graph and then later inserted. The last element of the list,
attrs is used if there are any attributes for this subgraph.
This is a named vector where the names are the attributes and the
elements are the values for those attributes.
recipEdges argument can be used to specify how to handle
reciprocal edges. The default value,
combined will combine any
reciprocated edges into a single edge (and if the graph is directed,
will by default place an arrowhead on both ends of the edge), while
the other option is
distinct which will draw to separate
edges. Note that in the case of an undirected graph, every edge of a
graphNEL is going to be reciprocal due to implementation issues.
An object of class
Li Long <[email protected]>
1 2 3 4 5 6 7 8 9
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.