fillprob: All subgraphs List all subgraphs of specific number of nodes

Description Usage Arguments Value Examples

View source: R/fillprob.R

Description

All subgraphs List all subgraphs of specific number of nodes

Usage

1
fillprob(NN, x)

Arguments

NN

Possible nodes.

x

The matrix shows edges with repect to each subgraph of the complete graph. All entries of the matrix are strings, for example "1-3", which represent endpoints of the edge in increasing order. If it is not in increassing order, the function will correct the order.

Value

A matrix filled with 1 and 0. Number 1 represents there is an edge in the subgraph, otherwise 0.

Examples

1
fillprob(c(1:5), rbind(c("1-2", "1-3"), c("2-4", "1-3")))

placeboo/subgraph documentation built on May 29, 2019, 7:37 a.m.