Description Usage Arguments Examples
Motif finding uses a simple Domain-Specific Language (DSL) for expressing structural queries. For example, gf_find(g, "(a)-[e]->(b); (b)-[e2]->(a)") will search for pairs of vertices a,b connected by edges in both directions. It will return a DataFrame of all such structures in the graph, with columns for each of the named elements (vertices or edges) in the motif. In this case, the returned columns will be in order of the pattern: "a, e, b, e2."
1 |
x |
An object coercable to a GraphFrame (typically, a
|
pattern |
pattern specifying a motif to search for |
1 2 3 4 5 | ## Not run:
gf_friends(sc) %>%
gf_find("(a)-[e]->(b); (b)-[e2]->(a)")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.