]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.graph/src/org/simantics/graph/query/Graphs.java
Migrated source code from Simantics SVN
[simantics/platform.git] / bundles / org.simantics.graph / src / org / simantics / graph / query / Graphs.java
diff --git a/bundles/org.simantics.graph/src/org/simantics/graph/query/Graphs.java b/bundles/org.simantics.graph/src/org/simantics/graph/query/Graphs.java
new file mode 100644 (file)
index 0000000..6d8c262
--- /dev/null
@@ -0,0 +1,18 @@
+package org.simantics.graph.query;\r
+\r
+import java.util.Arrays;\r
+import java.util.Collection;\r
+\r
+import org.simantics.graph.representation.TransferableGraph1;\r
+\r
+public class Graphs {\r
+\r
+       public static IGraph createGraph(Paths paths, Collection<TransferableGraph1> tgs) {\r
+               return TransferableGraphConversion.convert(paths, tgs);\r
+       }\r
+       \r
+       public static IGraph createGraph(Paths paths, TransferableGraph1 ... tgs) {\r
+               return createGraph(paths, Arrays.asList(tgs));\r
+       }\r
+       \r
+}\r