Package prefuse.data.io

Examples of prefuse.data.io.GraphMLWriter


//################################################################################################
    // Generate the XML file from the graph   
    public boolean writeFile(Graph graph, String fileName)
    {
           GraphMLWriter graphWriter = new GraphMLWriter();
           try
            {
               //=== See if the file exists, if so overwrite it, if not create a new file and write to it
               File newFile = new File(fileName);
               if (newFile.exists())
               {
                   graphWriter.writeGraph(graph, newFile);                         
               }
               else
               {
                   newFile.createNewFile();
                   graphWriter.writeGraph(graph, newFile);
               }
               return true;
             }
           catch(Exception e){
               System.out.println("Exception "+ e);
View Full Code Here

TOP

Related Classes of prefuse.data.io.GraphMLWriter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.