d_wrs: Definite-WRS for maximum degree 3 graphs

Description Usage Arguments

View source: R/d_wrs.R

Description

This function is a polynomial time algorithm for checking the morality of undirected graphs with maximum degree 3. The algorithm has been proved to be correct. It finds a simplicial clique (i.e., a simplicial node and its neighbours), and removes the entire clique.

Usage

1
d_wrs(G, debug = F)

Arguments

G

A given undirected graph stored in an adjacency matrix format.

debug

A boolean argument to show steps of the backtracking algorithm.


kelvinyangli/wrsgraph documentation built on Sept. 6, 2019, 10 a.m.