X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.graph%2Fsrc%2Forg%2Fsimantics%2Fgraph%2Fquery%2FGraphs.java;fp=bundles%2Forg.simantics.graph%2Fsrc%2Forg%2Fsimantics%2Fgraph%2Fquery%2FGraphs.java;h=6d8c2629345309ca811913189d2662d30f8b8d97;hb=969bd23cab98a79ca9101af33334000879fb60c5;hp=0000000000000000000000000000000000000000;hpb=866dba5cd5a3929bbeae85991796acb212338a08;p=simantics%2Fplatform.git 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 index 000000000..6d8c26293 --- /dev/null +++ b/bundles/org.simantics.graph/src/org/simantics/graph/query/Graphs.java @@ -0,0 +1,18 @@ +package org.simantics.graph.query; + +import java.util.Arrays; +import java.util.Collection; + +import org.simantics.graph.representation.TransferableGraph1; + +public class Graphs { + + public static IGraph createGraph(Paths paths, Collection tgs) { + return TransferableGraphConversion.convert(paths, tgs); + } + + public static IGraph createGraph(Paths paths, TransferableGraph1 ... tgs) { + return createGraph(paths, Arrays.asList(tgs)); + } + +}