Description Usage Arguments Value Examples
create_edge
returns an edge for a pair of words in a book graph.
1 | create_edge(pair, node_labels)
|
pair |
A character vector of length 2. |
node_labels |
A character vector of generic length, containing all unique tokens extracted from a text. |
A list of integer vectors of length 2 each, containing the positions of the pair in the token vector.
1 2 | create_edge(c("three", "men"), c("three", "men", "are", "waiting"))
create_edge(c("three", "are"), c("three", "men", "are", "waiting"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.