Skip to content

[tested by cwitty] graphs: create graph by specifying vertices and a function giving adjacencies #850

Closed

Description

@jasongrout

It would be very useful to be able to create a graph by giving a list of vertices and a function which specified the adjacencies. See the doc examples in the patch for several examples.

Component: combinatorics

Issue created by migration from https://trac.sagemath.org/ticket/850

Activity

  1. added this to the sage-2.8.7 milestone on Oct 11, 2007
  2. jasongrout commented on Oct 11, 2007

    @jasongrout
    MemberAuthor
  3. jasongrout commented on Oct 11, 2007

    @jasongrout
    MemberAuthor
    comment:1

    I just noticed that the comment in the DiGraph __init__ function should be changed from:

                \# Pass XGraph a dict of lists describing the adjacencies
    

    to
    # Pass XDiGraph a dict of lists describing the adjacencies

    Sorry.

  4. changed the title [-]graphs: create graph by specifying vertices and a function giving adjacencies[/-] [+][tested by cwitty] graphs: create graph by specifying vertices and a function giving adjacencies[/+] on Oct 13, 2007
  5. added 2 commits that reference this issue on Nov 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions