Learn R Programming

network (version 0.5-4)

network.indicators: Indicator Functions for Network Properties

Description

Various indicators for properties of network class objects.

Usage

has.loops(x)
is.directed(x)
is.hyper(x)
is.multiplex(x)

Arguments

x
an object of class network

Value

  • TRUE or FALSE

Details

has.loops returns TRUE iff x is allowed to contain loops (or loop-like edges, in the hypergraphic case). is.directed returns TRUE iff the edges of x are to be interpreted as directed.

is.hyper returns TRUE iff x is allowed to contain hypergraphic edges.

is.multiplex returns TRUE iff x is allowed to contain multiplex edges.

References

Butts, C.T. 2002. ``Memory Structures for Relational Data in R: Classes and Interfaces'' Working Paper.

See Also

network, get.network.attribute, set.network.attribute

Examples

Run this code
g<-network.initialize(5)    #Initialize the network
is.directed(g)
has.loops(g)

Run the code above in your browser using DataLab