Metagraph Query Format
A metagraph query file describes a list of metagraphs of a larger input graph. The query file is part of the input to the subgraph matching algorithm SymISO, which queries the larger input graph using each metagraph and outputs the instances of each metagraph. The definition and details of metagraph can be found in our ICDE16 paper.
The file is a space delimited text file, as illustrated in the sample below.
Each metagraph begins with a header line starting with t #. In other words, two metagraphs are separated by this header line.
Each of the next few lines starting with v or e represents a node or edge, respectively, with the same specification as explained in the Labeled Graph Format.
Each of the subsequent lines starting with a represents the symmetry information of the metagraph: a <NodeID> <NodeID> .... Each node n would have a corresponding a line, which lists the <NodeID> of all nodes that are symmetric to n. Refer to our citation above for the definition of symmetry.