Learn R Programming

QuACN (version 1.8.0)

edgeDeletedSubgraphs: Edge-deleted subgraphs

Description

This method lists all edge-deleted subgraphs of a given graph.

Usage

edgeDeletedSubgraphs(gs)

Arguments

gs
a list of or a single graph, either as a graphNEL object or as an adjacency matrix.

Value

be constructed from the input graph(s) by removing a single edge. The individual graphs are output as adjacency matrices.

Examples

Run this code
library(graph)
set.seed(123)
g <- randomEGraph(as.character(1:8), 0.55)

one.eds <- edgeDeletedSubgraphs(g)
two.eds <- edgeDeletedSubgraphs(one.eds)

Run the code above in your browser using DataLab