house_graph#
- graph_tool.collection.house_graph(x=False)[source]#
Returns the House graph (square with triangle on top).
- Parameters:
- x
bool
(optional, default:False
) If
True
, then two edges are added connecting diagonally opposite vertices of the square base.
- x
- Returns:
- g
Graph
House graph in the form of a square with a triangle on top.
- g
Notes
The house graph is a simple undirected graph with 5 nodes and 6 edges [house].
References