Skip to content

A very simple example to get familiar with the syntax #6

Answered by dyumanaditya
HRezaei asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @HRezaei, apologies for the late reply.

For your first question:

There are two ways of doing this:

  1. You can have a rule that creates an edge between two people (by using the edge option in rules.yaml) if the conditions are satisfied. In this case it would create a node between Mary and John with a friends attribute set to [1,1]. This is recommended since it will be simpler. I will show you how to make this specific case work below.
  2. You can have a rule that modifies the friends attribute from [0,0] to [1,1]. In which case, you would need to have a pre-defined edge between Mary and John with friends set to [0,0] in the graphml file.

For your second question:

Your graphml file is not ent…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@HRezaei
Comment options

@kmukherji
Comment options

@dyumanaditya
Comment options

@kmukherji
Comment options

Answer selected by kmukherji
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
help wanted Extra attention is needed
3 participants