Does pyTigerGraph support single edge type to multiple pairs of Vertices?

I’m trying to add single edge type that is defined between multiple pairs of vertices. Is there a pyTigerGraph api that supports this functionality? See below example of edge type: ‘isMadeOf’

Example:
Sandwich isMadeOf Meat
CheeseCake isMadeOf Milk

Any insights would be grealty appreicated.

Kind Regards,

Mitch DeFelice

Hi Demit,

I believe pyTigerGraph should support that.

You can add edges between multiple types.
I’d recommend doing this using GSQL commands to run a schema change job.

E.g.

In the schema change job, you can do things like this:

ADD UNDIRECTED EDGE isMadeOf(FROM Sandwich, TO Meat | FROM CheeseCake, TO Milk);

If you are creating a GLOBAL edge, you can see instruction here:

The format is almost the same, except that for global edges, you used the keyword “CREATE” instead of “ADD”.

You can run GSQL commands via pyTigerGraph by doing this: GSQL Interface :: pyTigerGraph

I hope this helps!

Best,
Supawish Limprasert (Jim)
Solution Engineer, TigerGraph