Learn R Programming

cograph (version 2.0.0)

network_clique_size: Largest Clique Size

Description

Finds the size of the largest clique (complete subgraph) in the network. Also known as the clique number or omega of the graph.

Usage

network_clique_size(x, ...)

Value

Integer: size of the largest clique

Arguments

x

Network input: matrix, igraph, network, cograph_network, or tna object

...

Additional arguments passed to to_igraph

Examples

Run this code
# Triangle embedded in larger graph
adj <- matrix(c(0,1,1,1, 1,0,1,0, 1,1,0,0, 1,0,0,0), 4, 4)
network_clique_size(adj)  # 3

Run the code above in your browser using DataLab