Description Usage Arguments Value Examples
pathfinder
creates the Pathfinder network from a given set of conceptmaps. The conecpts of each concept map are
unified, then the concept maps are transformed into a weight matrix and pathfinder.matrix
is called on the data.
1 2 3 | ## S3 method for class 'conceptmaps'
pathfinder(data, q = 2, r = 1, threshold = 0,
directed = F, prune.edges = F, return.cm = F, filename = "", ...)
|
data |
A conceptmaps object. |
q |
The parameter q used in the Pathfinder algorithm. The resulting graph will be q-triangular. |
r |
The parameter r used in the Pathfinder algorithm for the r-metric. |
threshold |
A numeric value used for pruning the graph before the Pathfinder algorithm. The pruning works in conjunction with
the value of |
directed |
if TRUE, the direction of the edges will be kept and the resulting Pathfinder network will be directed as well. |
prune.edges |
If TRUE, each entry of the weight matrix that is lower than |
return.cm |
If TRUE, a conceptmap object will be returned. Otherwise, an igrpah object will be returned. |
filename |
Optional. If specified, the resulting Pathfinder network will be stored in TGF format in the given file. |
... |
- |
Depending on return.cm
either an igraph object or a conceptmap object that represents the Pathfinder network.
If an igraph object is returned, the graph will be weighted.
1 2 3 4 5 6 7 8 9 10 11 | #Create concept maps from three random graphs
require("igraph")
g1 = set.vertex.attribute(erdos.renyi.game(5, 0.7, type="gnp"), "name", value=1:5)
g2 = set.vertex.attribute(erdos.renyi.game(5, 0.7, type="gnp"), "name", value=1:5)
g3 = set.vertex.attribute(erdos.renyi.game(5, 0.7, type="gnp"), "name", value=1:5)
#Create conceptmaps object from three conceptmap objects
simple_cms = conceptmaps(list(conceptmap(g1), conceptmap(g2), conceptmap(g3)))
#Create Pathfinder network from data and return a conceptmap object
cm = pathfinder(simple_cms, q=1, return.cm=TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.