This is an approach for network querying problem based on conditional random
field (CRF) model which can handle both undirected and directed networks,
acyclic and cyclic networks, and any number of insertions/deletions.
query.net: The query network file is written as follows:
v1 v2 v3 v4 v5 v3 v4 ... where v1, v2, v3, v4, v5 ... are the
nodes' names and each line indicates there are edges between the first node
and other nodes in the line. For example, the first line denotes 4 edges:
(v1, v2), (v1, v3), (v1, v4), and (v1, v5).
target.net: The format of this file is the same as the query network
file.
node.sim: This similarity file's format is as follows: v1 V1 s1
v1 V2 s2 ... v1 is the node from the query network, V1 is the node
from the target network, s1 is the similarity score between the node v1 and
V1, and so on.
query.type: If query.type = 1, the loopy belief propagation (LBP)
algorithm will be applied, which is an approximate algorithm for a general
graph with loops. If the query is a chain or tree, there are exact
algorithms. Set query.type = 2 when the query is a chain, and query.type = 3
when the query is a tree. The heuristic algorithm will be used when
query.type = 4, which will try the exact algorithm (junction tree algorithm)
first and resort to LBP algorithm when the exact algorithm failed. The
default value is 4.
delta.d: The smaller delta.d is, the heavier penalty for deletions.
delta.c: The smaller delta.c is, the heavier penalty for consecutive
deletions.
delta.e: The smaller delta.e is, the heavier penalty for single
deletion.
delta.s: The larger delta.s indicates heavier penalty for insertions.