asGraph6: Convert adjacency matrix to a graph6 symbol

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

Description

This function converts a graph adjacency matrix to a graph6 symbol.

Usage

1
2
3
asGraph6(object)
## S4 method for signature 'matrix'
asGraph6(object)

Arguments

object

a square adjacency matrix containing 0s and 1s

Details

If necessary, more details than the description above

Value

A graph6 symbol.

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 asAMatrix for conversion in the opposite direction.

Examples

1
2
3
g <- asAMatrix("F?Dco")
g
asGraph6(g)

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