Questions tagged [subgraph]

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

313 questions
0
votes
0 answers

Union of responses from two different subgraphs

I was looking into apollo federation but was not able to deduce from a first scan of their docs if I will be able to respond from the router with union of responses from two different subgraphs. For example, I have two responses from subgraph…
0
votes
2 answers

Graphviz cluster vertical align

I've got a graph with clusters. In this example the graph is generated "tilted" to the left. The graph is generated automatically with a strategy: to combine clusters I draw an edge between the last node of previous subgraph to the first node of…
Artyum
  • 169
  • 2
  • 13
0
votes
0 answers

Does returning values from an event handler makes the Subgraph to crash?

I tried returning the entity objects from the event handlers on the AssemblyScript Subgraph code to simplify unit testing. For example, this works fine: // Original code export function handleEventCreation( event: EventCreation ): void…
gagiuntoli
  • 475
  • 5
  • 13
0
votes
0 answers

How to find one hop subgraph for multiple nodes at same time in python?

For graph G, with a subgraph g in G. How to find one hop subgraph g+ from all the nodes of g? The only way I find now is to find ego_graph for one node each time. Thanks networkx has ego_graph and Graph.neighbors to find it, but only for one node…
Miracle
  • 1
  • 3
0
votes
0 answers

How can I use sparql to fill in any missing relationships between nodes when merging 2 subgraphs?

I have an oxigraph store that contains all of my information. At different points in time I construct various subgraphs from that store with the same columns ?s ?p and ?o. At some point I want to combine any two of these subgraphs. Constructing a…
0
votes
0 answers

How do I deploy the Uniswap v3 Subgraph repo on my own subgraph?

With "Hosted Service" on The Graph being retired soon, I am interested in duplicating this repo to run on a local Graph node. I tried to clone the repository and initialize the subgraph but I ran into a few errors with incompatible versions. Any…
0
votes
0 answers

Training a Large Graph Neural Network for Time Series Traffic Prediction Problem

I am training a GNN (GCN+GRU) for traffic prediction problem using pygeometric, my project is like the example shown in the official…
0
votes
0 answers

How to fetch more than 1000 records with single GraphQL query

I'd like to get bulk of data up to 8640 from subgraph using GraphQL. query dexCandlesQuery( $period: Int! = 300 $token0: String! = "0x2B4e4899b53E8b7958c4591a6d02f9C0b5c50F8f" $token1: String! = "0x73d22d8a2D1f59Bf5Bcf62cA382481a2073FAF58" …
Code Plus
  • 150
  • 1
  • 12
0
votes
0 answers

theGraph: create subgraph loading but not working

subgraph Recently I have been having problem with the graph. Any time I try to create a subgraph. It shows the loading spinner but nothing shows up. I tried this for hours but still nothing. I changed networks, used vpn and nothing worked. I…
0
votes
0 answers

Find all subgraphs which has a single input edge and a single output edge in a graph

Given a graph, I want to find all the subgraphs that only has 1 input edge and 1 output edge. For example, in this graph, the subgraphs will be [1, 2, 3, 4], [5, 6, 7, 8]. I don't know how to describe this problem in a formal way so just putting a…
Zack
  • 1,205
  • 2
  • 14
  • 38
0
votes
0 answers

How to handle subgraph isomorphism algorithms with millions of points and tens of millions of edges?

I implemented the VF3P algorithm, but when the size of the graph reaches millions of points and tens of millions of edges (e.g., the soc_liveJournal dataset), solving a specified-size pattern graph becomes very time-consuming (it took a whole night…
0
votes
0 answers

Failing to install the dependencies via yarn when deploying a subgraph

When I try to initialise the subgraph in my application folder , the process fails when yarn is installing the dependencies . It throws the following error. Error: connect ETIMEDOUT 2405:200:1607:2820:41::36:443 at TCPConnectWrap.afterConnect…
0
votes
1 answer

Subgraph on hosted service issue with selecting based on an ethereum address

I have created the schema for my subgraph inside the .graphql file, here is a sample: ` type Post @entity { id: ID! title: String! # string body: String! # string createdAt: BigInt! # uint256 groupID: BigInt! # uint256 } type User…
0
votes
2 answers

Address[] can not assign to Bytes[] - Subgraph Build

I don't know what went wrong but when i try npm run build which runs graph build it throws error mentioned bellow Compile subgraphERROR TS2322: Type '\~lib/array/Array\<\~lib/@graphprotocol/graph-ts/common/numbers/Address\>' is not assignable to…
0
votes
0 answers

Efficient way to find subgraph with specific pattern

I have a problem with graph and subgraph. I have a directed graph G(V(G), E(G)). Each vertex is either type A or type B. Assume I have a pattern of directed or undirected graph, for example: A->B->A or A-B-A. I want to output all subgraph from…
HoPark
  • 1
  • 1