protected void startGraph()

in src/main/java/org/apache/commons/graph/export/DotExporter.java [145:162]


    protected void startGraph( String name )
        throws Exception
    {
        String graphDeclaration;

        if ( getGraph() instanceof DirectedGraph )
        {
            graphDeclaration = DIGRAPH;
            connector = DICONNECTOR;
        }
        else
        {
            graphDeclaration = GRAPH;
            connector = CONNECTOR;
        }

        printWriter.format( "%s %s {%n", graphDeclaration, name );
    }