Skip to content

Commit

Permalink
Merge pull request #22 from jajupmochi/v0.2
Browse files Browse the repository at this point in the history
V0.2
  • Loading branch information
jajupmochi authored Jun 25, 2020
2 parents b1ae62a + 58cc404 commit 6f0c1df
Show file tree
Hide file tree
Showing 2 changed files with 1,045 additions and 1 deletion.
5 changes: 4 additions & 1 deletion gklearn/ged/util/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,11 @@
from tqdm import tqdm
import networkx as nx
from gklearn.ged.env import GEDEnv
from gklearn.gedlib import librariesImport, gedlibpy


def compute_ged(g1, g2, options):
from gklearn.gedlib import librariesImport, gedlibpy

ged_env = gedlibpy.GEDEnv()
ged_env.set_edit_cost(options['edit_cost'], edit_cost_constant=options['edit_cost_constants'])
ged_env.add_nx_graph(g1, '')
Expand Down Expand Up @@ -124,6 +125,8 @@ def init_worker(graphs_toshare, ged_env_toshare, listID_toshare):


def compute_geds(graphs, options={}, sort=True, parallel=False, verbose=True):
from gklearn.gedlib import librariesImport, gedlibpy

# initialize ged env.
ged_env = gedlibpy.GEDEnv()
ged_env.set_edit_cost(options['edit_cost'], edit_cost_constant=options['edit_cost_constants'])
Expand Down
Loading

0 comments on commit 6f0c1df

Please sign in to comment.