src/main/java/com/mxgraph/io/mxGdCodec.java
public static String encode(mxGraph graph)
	{
		StringBuilder builder = new StringBuilder();
		
		Object parent = graph.getDefaultParent();
		Object[] vertices = mxGraphModel.getChildCells(graph.getModel(), parent, true, false);
		
		builder.append("# Number of Nodes (0-" + String.valueOf(vertices.length - 1) + ")");
		builder.append(String.valueOf(vertices.length));
		
		// TODO

		return builder.toString();
	}
/**
	 * Generates a GD text output with the cells in the graph.
	 * The implementation only uses the cells located in the default parent.
	 * @param graph Graph with the cells.
	 * @return The GD document generated.
	 */
Generates a GD text output with the cells in the graph.
The implementation only uses the cells located in the default parent.
@param graph Graph with the cells.
@return The GD document generated.
Generates a GD text output with the cells in the graph . The implementation only uses the cells located in the default parent . @param graph Graph with the cells . @return The GD document generated .
public static String encode(mxGraph graph)
	{
		StringBuilder builder = new StringBuilder();
		Object parent = graph.getDefaultParent();
		Object[] vertices = mxGraphModel.getChildCells(graph.getModel(), parent, true, false);
		builder.append("# Number of Nodes (0-" + String.valueOf(vertices.length - 1) + ")");
		builder.append(String.valueOf(vertices.length));
		return builder.toString();
	}
public static String encode ( mxGraph graph ) { StringBuilder builder = new StringBuilder ( ) ; Object parent = graph . getDefaultParent ( ) ; Object [ ] vertices = mxGraphModel . getChildCells ( graph . getModel ( ) , parent , true , false ) ; builder . append ( "# Number of Nodes (0-" + String . valueOf ( vertices . length - 1 ) + ")" ) ; builder . append ( String . valueOf ( vertices . length ) ) ; return builder . toString ( ) ; }
Generates a GD text output with the cells in the graph.
Generates a GD text output with the cells in the graph .
// TODO