-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
building rete net.. single-edge canonical labels
- Loading branch information
Showing
6 changed files
with
75 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
from frozendict import frozendict | ||
#from frozendict import frozendict | ||
|
||
def make_node_token(_class,idx,action): | ||
return frozendict(dict(_class=_class,idx=idx,action=action)) | ||
return dict(_class=_class,idx=idx,action=action) | ||
|
||
def make_edge_token(_class1,idx1,attr1,idx2,attr2,action): | ||
return frozendict(dict(_class=_class1,idx1=idx1,idx2=idx2,attr2=attr2,action=action)) | ||
return dict(_class=_class1,idx1=idx1,idx2=idx2,attr2=attr2,action=action) | ||
|
||
def make_attr_token(_class,idx,attr,value,action): | ||
return frozendict(dict(_class=_class,idx=idx,attr=attr,value=value,action=action)) | ||
return dict(_class=_class,idx=idx,attr=attr,value=value,action=action) | ||
|
||
def make_cache_token(variables,values,action): | ||
return frozendict(variables=variables,values=values,action=action) | ||
return dict(variables=variables,values=values,action=action) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters