Skip to content

Example for subgraph C_n (page 268, version 3.1.9a) not reproducible #1194

Open
@jasperhabicht

Description

@jasperhabicht

Version

3.1.9a

Details

The fourth example on page 268 (section 19 "Specifying Graphs", subsection "19.1" Overview) can only be reproduced using the graphs.standard library, but not using the graphs library as the code suggests. There seems to be a mistake in the code example.

The provided code example is:

\usetikzlibrary {graphs}
    \tikz
        \graph [nodes={draw, circle}, clockwise, radius=.75cm, empty nodes, n=8] {
            subgraph C_n [name=inner] <->[shorten <=1pt, shorten >=1pt]
            subgraph C_n [name=outer]
    };

It should be:

\usetikzlibrary {graphs.standard}
    \tikz
        \graph [nodes={draw, circle}, clockwise, radius=.75cm, empty nodes, n=8] {
            subgraph C_n [name=inner] <->[shorten <=1pt, shorten >=1pt]
            subgraph C_n [name=outer]
    };

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions