flip_edges | R Documentation |
Flip direction of igraph edges
flip_edges(g, edge_idx, verbose = FALSE, ...)
g |
|
edge_idx |
|
verbose |
|
... |
additional arguments are ignored. |
This function simply flips the direction of igraph edges, keeping all other node and edge attributes.
Note that this function will flip the order of nodes for each
edge defined by edge_idx
, regardless whether the igraph
itself is a directed graph.
When edge_idx
is provided as a character
vector edge sequence,
any entries that do not match edges in g
are ignored. A summary
table is printed when verbose=TRUE
.
Other jam igraph functions:
cnet2df()
,
cnet2im()
,
cnetplotJam()
,
cnetplot_internalJam()
,
color_edges_by_nodegroups()
,
color_edges_by_nodes_deprecated()
,
color_edges_by_nodes()
,
color_nodes_by_nodegroups()
,
communities2nodegroups()
,
drawEllipse()
,
edge_bundle_bipartite()
,
edge_bundle_nodegroups()
,
enrichMapJam()
,
fixSetLabels()
,
get_bipartite_nodeset()
,
igraph2pieGraph()
,
jam_igraph()
,
jam_plot_igraph()
,
label_communities()
,
layout_with_qfrf()
,
layout_with_qfr()
,
mem2emap()
,
memIM2cnet()
,
mem_multienrichplot()
,
nodegroups2communities()
,
rectifyPiegraph()
,
relayout_with_qfr()
,
removeIgraphBlanks()
,
removeIgraphSinglets()
,
reorderIgraphNodes()
,
rotate_igraph_layout()
,
spread_igraph_labels()
,
subgraph_jam()
,
subsetCnetIgraph()
,
subset_igraph_components()
,
sync_igraph_communities()
,
with_qfr()
am <- matrix(ncol=5, nrow=5, byrow=TRUE,
data=c(0,0,0,0,0,
1,0,0,0,0,
1,0,0,0,0,
1,0,0,0,0,
1,0,0,0,0),
dimnames=list(head(LETTERS, 5),
head(LETTERS, 5)))
am;
g1 <- igraph::graph_from_adjacency_matrix(am)
plot(g1);
g2 <- flip_edges(g1, 3:4);
plot(g2);
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.