barbell_graph
Returns a barbell graph with two cliques of size n that are connected by a path of length path_len.
sasviya.network.utils.built_in_graphs.barbell_graph(n, path_len)
Only undirected barbell graphs are supported.
Parameters
- n : int
-
Specifies the size of each clique.
- path_len : int
-
Specifies the length of the path that connects two cliques.
Returns
- SAS graph object
-
Returns a barbell graph with two cliques of size n and a path of length path_len.
Last updated: July 28, 2026