is.edgelist: Check whether an object is an edge list

Description Usage Arguments Value Examples

View source: R/is.edgelist.R

Description

This function checks whether an object is an edge list.

Usage

1
is.edgelist(edgelist)

Arguments

adjmatrix

The input adjacency matrix.

Value

Logical scalar, whether the input object is an edge list.

Examples

1
2
3
4
5
6
7
8
edg <- rbind(c(1,2,4),
c(1,3,2),
c(2,1,4),
c(2,4,1),
c(3,1,2),
c(3,2,4),
c(4,2,1))
is.edgelist(edg)

hangxiong/wNetwork documentation built on May 17, 2019, 2:28 p.m.