Description Usage Arguments Details Value See Also Examples
View source: R/DominanceTree.R
Finds the positional dominance between two nodes, by finding all shortest path between the nodes in a galois lattice
1 2 | do_dominance_tree(graph, nodes, from = names(head(V(graph), n = 1)),
to = names(tail(V(graph), n = 1)))
|
graph |
a Galois lattice of which the dominance should be found |
nodes |
the labels of those nodes for which one is interested in knowing the dominace relation for example the names of all affiliations |
from |
the node from where to start the path search |
to |
the node to which the shortest path should be found |
The algorithm should be used with a directed galois lattice, e.g. G <- do_galois_lattice(X, directed = TRUE). The algorithm returns the positional dominance of the original graph, if it is applied on the REDUCED label of the galois lattice. A Galois lattice has two possible directions and by using either of them the positional dominance for actors and affiliations can be calculated, but once a direction is chosen from and to nodes have to be chosen appropriately.
igraph object, a Tree describing the dominace between nodes
do_galois_lattice
for constructing the according input graph
1 2 3 4 5 6 7 8 9 | M=matrix(c(1,1,1,0,0,0,
0,0,0,1,1,1,
1,0,0,1,0,0,
1,1,0,1,0,1),nrow=6)
colnames(M) <- c("A", "B", "C", "D")
rownames(M) <- as.character(1:6)
Galois <- do_galois_lattice(M, directed = TRUE, label = "reduced")
T <- do_dominance_tree(Galois,as.character(1:6))
plot(T)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.