Questions tagged [subgraph]

Use this tag for questions related to a Subgraph, a part of a larger graph.

313 questions
0
votes
0 answers

How to find the set of all coincident edges crossing into a subset of a graph only using Python and Gurobi API

I'm trying to work on a Network Optimization Problem, where I need to create all distinct Subgraphs of a provided graph (The Graph is complete in itself and is of undirected nature with symmetric edge weights). In order to ensure the connectivity,…
0
votes
0 answers

graph-cli installs but is not getting read on MacOS

I am installing @graphprotocol/graph-cli with yarn with the command yarn global add @graphprotocol/graph-cli I get the success message saying: success Installed "@graphprotocol/graph-cli@0.31.0" with binaries: - graph But when I try to check its…
0
votes
0 answers

How to resolve fields in one microservice and return additional fields from another microservice?

I have two subgraphs, one on each microservice. I am trying to find a way to use referenceResolver from one microservice in the other one, using Apollo federation The way it works is by using the @key directive with the wanted fields, then resolving…
Tal B
  • 1
  • 2
0
votes
0 answers

Implementing Subgraph using bgl with custom class for vertex and edge

#include #include struct service_vertex{ int service_id; string service_name; int node_id; int service_status; int color; }; struct…
sunder
  • 1
  • 2
0
votes
0 answers

graph decomposition using min cut function

So I have a graph with vertices that are connected by edges. The min cut is a function that calculates the minimum number of edges which allows the graph to be separated into two connected subgraphs. So the problem I have is that the min cut…
Ali
  • 1
  • 1
0
votes
1 answer

deployment failure::network not supported by registrar: no network bsc found on chain ethereum

× Failed to deploy to Graph node https://api.thegraph.com/deploy/: deployment failure::network not supported by registrar: no network bsc found on chain ethereum error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run…
Kroim
  • 93
  • 7
0
votes
0 answers

Error while creating graph from input of type ""

I am running the code from this repository Link with dgl==0.1.3 and I am facing this error. I am not sure why its coming. I have attached the code snippet and the error below. code snippet def _prepare_subgraphs(self, nodes, r_label, n_labels): …
0
votes
1 answer

Rankdir ignored when drawing

I am trying to make the following digraph face a different direction, from top to bottom, instead of left to right. I have placed rankdir=tb and rank=same for the nodes I would like to be together, but I cannot get the wanted result (which you can…
Vasilis Lemonidis
  • 636
  • 1
  • 7
  • 25
0
votes
0 answers

ipycytoscape, draw subgraph

I'm noob in ipycytoscape and Jupyter and seems need help. I'm trying to find a sutable way to show/draw subgraph after I click by node. For example. I have graph with node1---node2---node3 . I click by node1 and want to show node1 --- node2.1 -…
0
votes
2 answers

Index future generated contracts using TheGraph

I have an ethereum contract that is called: tokenFactory.sol This contract generates ERC20 tokens as it goes along, and when it does it emits and event that has the generated ERC20 address. I would like to go and then index the Transfer event of…
blockbyblock
  • 115
  • 5
0
votes
1 answer

The Graph: How can I include in my response this "price" value that exists in a different GraphQL type?

I'm working with thegraph.com and created a subgraph to index blockchain data from a NFT marketplace smart contract I'm building from scratch, just for my own educational purposes. At the same time I'm using using GraphQL and building queries here…
elvismdev
  • 1,027
  • 11
  • 21
0
votes
1 answer

JGrapht: Generate subgraphs with DirectedSubgraph.java class

I use jgrapht. I will generate subgraphs. I think jgrapht-0.8.2/jgrapht-0.8.2/src/org/jgrapht/graph/DirectedSubgraph.java is useful for this purpose. But I could not find how can I use this class? Can you help me ? For example:…
eyiht
  • 1
  • 2
0
votes
1 answer

Querying subgraph by ID fails but other properties work. How to query a subgraph by ID?

I'm trying to validate subgraph IDs in https://thegraph.com/hosted-service/subgraph/uniswap/uniswap-v3. Given the token id: "0x419D0d8BdD9aF5e606Ae2232ed285Aff190E711b" for FUN. { tokens(where: { symbol: "FUN" # id:…
ElHaix
  • 12,846
  • 27
  • 115
  • 203
0
votes
1 answer

Using the Uniswap v3 Subgraph or other options, how to find liquidity pools containing a given token symbol?

I am trying to get a list of all pools containing a token symbol with Uniswap v3 for arbitrage opportunities. For example, if I want to find all pools containing "WETH". Using the subgraph, { tokens(first: 10, where:{symbol:"WETH"}){ id …
ElHaix
  • 12,846
  • 27
  • 115
  • 203
0
votes
0 answers

Algorithm for the maximum weight connected subgraph of a given order

Does Networkx have an algorithm for finding the maximum weight connected subgraph of a given order (i.e. no. of vertices)?
John
  • 451
  • 7
  • 17