public class GraphList extends Object
Constructor and Description |
---|
GraphList() |
Modifier and Type | Method and Description |
---|---|
static List<Triple> |
allTriples(GNode gnode) |
static void |
allTriples(GNode gnode,
Collection<Triple> acc) |
static boolean |
contains(GNode gnode,
Node item) |
static Set<Node> |
findAllLists(Graph graph)
Expensive operation to find all the likely looking list heads in a model
|
static Node |
get(GNode gnode,
int idx) |
static int |
index(GNode gnode,
Node value) |
static List<Integer> |
indexes(GNode gnode,
Node value) |
static boolean |
isListNode(GNode gnode) |
static int |
length(GNode gnode) |
static List<Node> |
listFromMember(GNode gnode)
Starting at a list element, find the heads of lists it is in
|
static void |
listFromMember(GNode gnode,
Collection<Node> acc) |
static Node |
listToTriples(List<Node> list,
BasicPattern bgp)
Convert a list of nodes into triples, placing them in BPG, returning the head of the list
|
static List<Node> |
members(GNode gnode) |
static void |
members(GNode gnode,
Collection<Node> acc) |
static int |
occurs(GNode gnode,
Node item) |
static void |
triples(GNode gnode,
Collection<Triple> acc) |
public static List<Node> listFromMember(GNode gnode)
public static void listFromMember(GNode gnode, Collection<Node> acc)
public static void members(GNode gnode, Collection<Node> acc)
public static int length(GNode gnode)
public static void triples(GNode gnode, Collection<Triple> acc)
public static void allTriples(GNode gnode, Collection<Triple> acc)
public static Set<Node> findAllLists(Graph graph)
public static Node listToTriples(List<Node> list, BasicPattern bgp)
public static boolean isListNode(GNode gnode)
Licenced under the Apache License, Version 2.0