has.edges | R Documentation |
Returns a logical value for each specified vertex, indicating if it has any incident (in or out) edges. Checks all vertices by default
has.edges(net, v = seq_len(network.size(net)))
net |
a |
v |
integer vector of vertex ids to check |
returns a logical vector with the same length as v, with TRUE if the vertex is involved in any edges, FALSE if it is an isolate.
skyebend
test<-network.initialize(5)
test[1,2]<-1
has.edges(test)
has.edges(test,v=5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.