Differences between revisions 7 and 74 (spanning 67 versions)
Revision 7 as of 2006-11-13 10:52:03
Size: 1752
Editor: anonymous
Comment:
Revision 74 as of 2008-11-14 13:42:09
Size: 104
Editor: anonymous
Comment: converted to 1.6 markup
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
[[TableOfContents]]

== Introduction ==

The SAGE Graph Theory Project aims to implement Graph objects and algorithms in ["SAGE"].

The goal of the Graph Database is to implement constructors for many common graphs, as well as thorough docstrings that can be used for educational purposes. Please check below for updates and note the section set aside for suggestions at the bottom of the page.

Emily Kirkman is working on this project.

== Basic Structures ==
We've begun to implement some basic graph constructors with (hopefully) intuitive graphics. Please browse below and for more information on graph plotting, look at Rober Miller's [http://sage.math.washington.edu:9001/graph_plotting wiki].

=== Complete Graphs ===
The Complete Graph constructor takes an integer argument n, which is the number of vertices to be in the graph. The chosen convention is to display this graph in a cyclic manner with the first node at the top (via a position dictionary). Here's the constructor from the py file:
    def CompleteGraph(self, n):
        """
        Returns a complete graph with n nodes and cyclic positioning
        Dependant on vertices numbered 0 through n-1 in NetworkX complete_graph()
        """
        pos_dict = {}
        for i in range(n):
            x = float(cos((pi/2) + ((2*pi)/n)*i))
            y = float(sin((pi/2) + ((2*pi)/n)*i))
            pos_dict[i] = [x,y]
        G = NX.complete_graph(n)
        return Graph(G, pos=pos_dict, name="Complete graph on %d vertices"%n)


Below, we used the SAGE !GraphicsArray to show 16 complete graphs at once, starting at n=3 and through n=18.
attachment:complete_array.png

== Named Graphs ==

=== Petersen ===

== Suggestions ==
 * ???
content needed: you may be looking for [[http://wiki.sagemath.org/graph_generators|Graph Generators]].

content needed: you may be looking for Graph Generators.

graph_database (last edited 2008-11-14 13:42:09 by anonymous)