make_full_graph: Create a full graph

Description Usage Arguments Value See Also Examples

View source: R/make.R

Description

Create a full graph

Usage

1
2
3
make_full_graph(n, directed = FALSE, loops = FALSE)

full_graph(...)

Arguments

n

Number of vertices.

directed

Whether to create a directed graph.

loops

Whether to add self-loops to the graph.

...

Passed to make_full_graph.

Value

An igraph graph

See Also

Other determimistic constructors: graph_from_atlas(), graph_from_edgelist(), graph_from_literal(), make_chordal_ring(), make_empty_graph(), make_full_citation_graph(), make_graph(), make_lattice(), make_ring(), make_star(), make_tree()

Examples

1
2

Example output

Attaching package: 'igraph'

The following objects are masked from 'package:stats':

    decompose, spectrum

The following object is masked from 'package:base':

    union

IGRAPH 10e59ed U--- 5 10 -- Full graph
+ attr: name (g/c), loops (g/l)
+ edges from 10e59ed:
 [1] 1--2 1--3 1--4 1--5 2--3 2--4 2--5 3--4 3--5 4--5
IGRAPH 30b29ed D--- 4 12 -- Full graph
+ attr: name (g/c), loops (g/l)
+ edges:
1 -> 2 3 4   2 -> 1 3 4   3 -> 1 2 4   4 -> 1 2 3

igraph documentation built on Jan. 8, 2021, 2:19 a.m.