File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed
src/main/java/network/aika/neuron/relation Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 55 <groupId >org.aika-software</groupId >
66 <artifactId >aika</artifactId >
77 <packaging >jar</packaging >
8- <version >1.4.4 </version >
8+ <version >1.4.5-SNAPSHOT </version >
99 <name >aika</name >
1010 <url >http://aika.network</url >
1111 <description >An artificial intelligence for knowledge acquisition</description >
Original file line number Diff line number Diff line change @@ -77,7 +77,14 @@ public Relation getRelation(Relation r) {
7777
7878
7979 public void addRelation (Relation r ) {
80- relations .put (r , r );
80+ if (r instanceof MultiRelation ) {
81+ MultiRelation mr = (MultiRelation ) r ;
82+ for (Relation rel : mr .relations .values ()) {
83+ relations .put (rel , rel );
84+ }
85+ } else {
86+ relations .put (r , r );
87+ }
8188 }
8289
8390
You can’t perform that action at this time.
0 commit comments