house_graph

Contents

house_graph#

graph_tool.collection.house_graph(x=False)[source]#

Returns the House graph (square with triangle on top).

Parameters:
xbool (optional, default: False)

If True, then two edges are added connecting diagonally opposite vertices of the square base.

Returns:
gGraph

House graph in the form of a square with a triangle on top.

Notes

The house graph is a simple undirected graph with 5 nodes and 6 edges [house].

References