/[fenfire]/fenfire/org/fenfire/swamp/Graphs.java
ViewVC logotype

Diff of /fenfire/org/fenfire/swamp/Graphs.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4 by mudyc, Wed May 21 18:40:02 2003 UTC revision 1.5 by mudyc, Wed May 21 18:41:29 2003 UTC
# Line 66  public class Graphs { Line 66  public class Graphs {
66      public static Graph toGraph(Model m) {      public static Graph toGraph(Model m) {
67          try {          try {
68              Graph g = new HashGraph();              Graph g = new HashGraph();
69              for(StmtIterator i=m.listStatements(); i.hasNext(); i.next()) {              StmtIterator i=m.listStatements();
70                while (i.hasNext()) {
71                  Statement s = i.next();                  Statement s = i.next();
72                  Object sub = Nodes.get(s.getSubject().toString());                  Object sub = Nodes.get(s.getSubject().toString());
73                  Object pred = Nodes.get(s.getPredicate().toString());                  Object pred = Nodes.get(s.getPredicate().toString());

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26