asAMatrix: Convert a graph6 symbol to adjacency matrix

Description Usage Arguments Details Value Note Author(s) References See Also Examples

Description

This function takes a graph6 symbol and converts it to a symmetric square adjacency matrix.

Usage

1
2
3
asAMatrix(object)
## S4 method for signature 'character'
asAMatrix(object)

Arguments

object

character, a graph6 symbol

Details

For detailed explanations of graph6 format see graph6.

Value

A square symmetric adjacency matrix representing the graph.

Note

This function aim at implementing format and methods originally created by Brendan McKay, bdm@cs.anu.edu.au and http://cs.anu.edu.au/~bdm.

Author(s)

Michal Bojanowski mbojan@ifispan.waw.pl

References

http://cs.anu.edu.au/people/bdm/data/formats.txt

See Also

graph6 for format description and asGraph6 for conversion in the opposite direction.

Examples

1
2
3
4

rgraph6 documentation built on May 2, 2019, 4:50 p.m.