Flare is an ActionScript library for creating visualizations that run in the Adobe Flash Player. From basic charts and graphs to complex interactive graphics, the toolkit supports data management, visual encoding, animation, and interaction techniques. Even better, flare features a modular design that lets developers create customized visualization techniques without having to reinvent the wheel.
// create a graph and 3 nodes Graph g = new Graph(); Node n1 = new Node(); Node n2 = new Node(); Node n3 = new Node(); // create 2 edges and add them manually Edge e1 = new Edge(n1, n2); Edge e2 = new Edge(n2, n3); n1.getEdges().add(e1); n2.getEdges().add(e2); // connect n3 to n1 n3.connectTo(n1); // add all 3 nodes to the graph g.addNode(n1); g.addNode(n2); g.addNode(n3); // create a graphWriter and file output stream GraphWriter gw = new GraphWriter(); File f = new File("textout.gexf"); FileOutputStream fos = new FileOutputStream(f); // write the file and close the stream - no XML worries! gw.write(g, fos); fos.close();
J. Leskovec, J. Kleinberg, and C. Faloutsos. Proceedings of the eleventh ACM SIGKDD international conference on Knowledge discovery in data mining, page 177--187. New York, NY, USA, ACM, (2005)