Skip to main content

ZACHARY_KARATE_EDGES

Constant ZACHARY_KARATE_EDGES 

Source
pub const ZACHARY_KARATE_EDGES: [VertexId; 156];
Expand description

The friendship network of Zachary’s karate club as the flat endpoint array of the C tutorial (lesson 3): 78 undirected edges among 34 members, [from0, to0, from1, to1, ...].

Vertex 0 is the instructor (“Mr. Hi”) and vertex 33 the administrator (“John A.”), whose conflict split the club in two.

§Examples

use igraph::prelude::*;
use igraph::tutorial::ZACHARY_KARATE_EDGES;

let karate = Graph::from_flat_edges(&ZACHARY_KARATE_EDGES, 0, false)?;
assert_eq!((karate.vcount(), karate.ecount()), (34, 78));