Questions tagged [graph]

25816 questions
0

votes
0

answer
4

Views

Writing to DSE graph from EMR

We are trying to write to write to a DSE graph (cassandra) from EMR and keep getting these errors. My JAR is a shaded jar with the byos dependencies. Any help would be appreciated. java.lang.UnsatisfiedLinkError: org.apache.cassandra.utils.NativeLibraryLinux.getpid()J at org.apache.cassandra.utils.N...
mat77
1

votes
2

answer
2k

Views

Retrieving facebook user access token with socialite on laravel 5.4

I am trying to get user access token so I can send CURL request through Guzzle to Facebook's Graph API to get user's friends that are using the app. But I can't seem to be able to obtain it. Here's my controller:
Mihail Pernichev
1

votes
1

answer
300

Views

using ruby to extract email body from Microsoft graph rest api outlook message

I am fetching emails from Outlook through Microsoft Graph or Rest Api directly from Ruby without using any Microsoft SDK. The problem I am facing is that I can't get the email message body from the response returned by Microsoft. Using the Ruby Mail gem, I have tried to parse the response by doing:...
brg
1

votes
1

answer
735

Views

Microsoft graph query: is user member of group?

A react application queries the Microsoft Graph to discover if a user is a member of a particular active directory group. Right now, there's this route: https://graph.microsoft.com/v1.0/me/memberOf The above does work in the application. It returns a (fairly sizable) object containing all of the us...
crowhill
1

votes
2

answer
61

Views

How to control the size of the vertex label in textplot_network?

I am able to control the vertex size, but not the vertex label size in textplot_network. Is there a way of doing it? I saw the argument vertex.cex in plot.network but it doesn't work. This is what I have got so far: library(quanteda) toks % tokens(remove_punct = TRUE) %>% tokens_tolower() %>% tokens...
Guilherme Parreira
1

votes
1

answer
99

Views

Onedrive API rejects access token (CompactToken parsing failed with error code: 8004920A)

Hopefully I'm missing something very simple. According to this documentation to get an access token I need to hit the following url: https://login.live.com/oauth20_authorize.srf?client_id={client_id}&scope={scope} &response_type=token&redirect_uri={redirect_uri} So far this appears to be working as...
CountMurphy
0

votes
1

answer
12

Views

How to place nodes in a specific position - networkx

I am doing a Ford-Fulkerson method which draws the graph at every stage. I want to place the source and the sink on specific positions (I want the source to be on the far left of the graph and the sink on the far right). I've already tried the pos argument inside the spring_layout function, but that...
Adrian Covaci
1

votes
1

answer
50

Views

403 forbidden when retrieve all users from Azure AD using Graph API

I get a 403 Forbidden response from Azure AD when trying to get all users using the Graph API: public static async Task AppAuthenticationAsync() { var tenant = ConfigurationManager.AppSettings['ida:TenantId']; var resource = 'https://graph.microsoft.com/'; var clientID = ConfigurationManager.AppSett...
User5590
1

votes
1

answer
65

Views

Accessing MS Graph API with directly obtained token issue

My project is based on this on-behalf-of-flow example. In my web api I have a non-restricted by [Authorize] method which receives login and password. I also have a restricted method which gets some info from MS Graph API: [HttpGet] [Authorize] [Route('[action]')] public async Task Info() { string re...
amplifier
1

votes
1

answer
35

Views

Minimum number of vertices whose removal makes the graph no longer connected

Given a undirected and connected graph G = (V, E). Find the minimum number of verticies whose removal make the graph no longer a connected graph.
dandoh
1

votes
1

answer
77

Views

Bearer token is not valid when calling the graph API

I would like to see full information on my users in the AD (users in groups, etc...) I already have an application that signs in to AD and then I get a bearer token that has access to my azure blockchain workbench API and everything works fine. The workbench API has a users endpoint but the informat...
Contentop
1

votes
1

answer
68

Views

Azure service to query Azure Active Directory

Suggest any azure service which can connect customer azure active directory can query customer azure active directory keep my application azure active directory in sync with any future change (add/remove user) on customer azure active directory ?
thiru
1

votes
2

answer
48

Views

Using a spatial index to find points within range of each other

I'm trying to find a spatial index structure suitable for a particular problem : using a union-find data structure, I want to connect\associate points that are within a certain range of each other. I have a lot of points and I'm trying to optimize an existing solution by using a better spatial inde...
Jean-Pierre Coffe
1

votes
1

answer
29

Views

Access token is empty with GuzzleHttp

When I try to make a connection to Microsoft Graph with the following code: $headers = [ 'Authorization: Bearer ' . $this->getAccessToken(), 'Content-Type: application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8', 'Preference-Applied: odata.track-changes' ]...
Sinan Samet
1

votes
1

answer
39

Views

How can you identify all permissions granted to an application using Microsoft Graph & C#?

I've searched the internet and SO and have only found one answer to the same question; but it was specific to Android programming and I didn't see a clear way to port it to C#. I would like to know how this could be done using C#. Code snippets or an actual example would be great. Basically, I have...
Mark
1

votes
1

answer
64

Views

Microsoft Graph and access without a user

I'm trying to upload and download files in my sharepoint online using a background task (daemon) that runs frequently in my ASP.NET Core app. Because it's a background task, no user identity is used. Instead, I tried to follow this document, getting an access token using the https://graph.microsof...
Los Morales
1

votes
1

answer
27

Views

Compute ALL spanning trees of a directed acyclic graph using igraph, network, or other R package

I want to compute the complete set of spanning trees for a graph. The graphs I'm working with are small (usually less than 10 nodes). I see functionality for computing the minimum spanning tree with igraph: library(igraph) g
mikeck
0

votes
0

answer
20

Views

Partition key for mutual acquaintances recommendations in CosmosDB

When defining a Graph Database in CosmosDB a Partition Key must be specified. The Partition Key is used for sharding the database. Each partition has a hard storage limit of 10GB. As such queries that do writes or reads across partitions are a lot more expensive. I want to use CosmosDb to find mutua...
Aran Mulholland
0

votes
1

answer
12

Views

Finding maximum profit In a directed acyclic graph

I am given a directed acyclic graph, where the vertices are 'projects'. Each project has a weight that is the projects 'profit'. These profits can be negative (which represents a costly project). Some projects cannot be started until certain other projects are completed. So edge i -> j indicates tha...
Sherin
1

votes
2

answer
457

Views

jqPlot Graph “TypeError”

In my Firebug, it is showing me: TypeError: this[r]._ticks[0] is undefined But in my JS Array, the items are well constructed. Should not be the data problem. So, as i said it should not be the data problem. The mystery is: The problem is not consistent, just that SOMETIME JUST GOT WHOLE BLANK. I ha...
夏期劇場
0

votes
1

answer
46

Views

Facebook API Graph. Instagram. How to get user profile picture knowing only username?

I'm implementing webhook subscription to receive notifications about new comments on Instagram media (so, the solution assumes server side environment). Webhook payload contains a comment ID. Fetching a comment node via Facebbok API Graph call I can get author's username. From this point I need to g...
Olegas
1

votes
2

answer
1.4k

Views

Source algorithm for networkx shortest_path(G[, source, target, weight]) function

I am doing some work with networkx and have used two shortest path algoritms namely: shortest_path(G[, source, target, weight]) dijkstra_path(G, source, target[, weight]) I understand that the dijkstra_path(G, source, target[, weight]) function is based on the dijkstra's shortest path algorithm. I...
Nobi
0

votes
2

answer
347

Views

API Share count Facebook Graph deprecated?

Since today when I try to get the share count the answer is :share field is deprecated for versions v2.9 and higher. Ex with : https://graph.facebook.com/?id=https://stackoverflow.com&fields=share Without &fields=share the json content is displayed but without the share value. I need to get the shar...
Lorenzo
1

votes
2

answer
3.2k

Views

How to Make a Box and Whisker graph with python

import statistics L= [0.43,0.31,0.34,0.44,0.37,0.4,0.82,0.41,0.33,0.38,0.36,0.39,0.41,0.35,0.21,0.42,0.27,0.7,0.41,0.37,0.47,0.34,0.54,0.32,0.26,0.39,0.39,0.37,0.34,0.4,0.36,0.33,0.51,0.37,0.42,0.45,0.67,0.41,0.35,0.33,0.56,0.4,0.48,0.8,0.4,0.4,0.66,0.34,0.34,0.42,0.5,0.35,0.38,0.36,0.69,0.32] Q = [...
Griffin Filmz
1

votes
4

answer
1.2k

Views

Prove that a graph is bipartite

Given a graph G in which every edge connects an even degree node with an odd degree node. How can i prove that the graph is bipartite? Thanks in advance
Fotis
1

votes
1

answer
494

Views

Specifying vertex position via coordinates in python graph-tool

Is it possible to plot a vertex at a particular position on the xy-axis by specifying coordinates? I want to have a square lattice of vertices without the edges between them (and then add edges later as I see fit). Thanks
duncster94
1

votes
1

answer
36

Views

How to indicate on a graph where the line started?

I would like to indicate the starting point of the graph - where the line started. This is my code import numpy as np from scipy.integrate import odeint from numpy import sin, cos, pi, array import matplotlib from matplotlib import rcParams import matplotlib.pyplot as plt from pylab import fig...
Charlotte Noxon
1

votes
2

answer
32

Views

ggplot does not draw line for all of the levels of categories in the data set

I used this code to draw the percent of people in poverty in state of Maine. This state has 17 counties. ggplot only shows 14 of them: ggplot(data=data_ME, aes(x=Year, y=PersonsinPoverty, group=Countyname, shape=Countyname, colour=URBAN)) + scale_shape_manual(values = c(1:17)) + # Set...
Alireza Ebrahimvandi
1

votes
2

answer
43

Views

Allocating M experiments to N labs while respecting constraints

I have the following problem: I have to allocate K experiments to N labs, while respecting some general constraints and some specific ones. The general ones are: each experiment has to be allocated to exactly R labs there's a maximum number of experiments per lab, M ideally the distribution of exper...
kleberneves
1

votes
2

answer
44

Views

xlabel in tableplot does not behave as expected

I have produced a graph using the community-contributed command tableplot. The graph itself is fine, but on the x-axis there are a lot of years, which overlap and are not legible. I have thus tried to label only every decade or something similar. My initial attempts did not work, so I checked the S...
Christoph
1

votes
2

answer
65

Views

Shortest possible route, starting and finishing anywhere

I'm looking for an algorithm that will connect a large amount of geographic coordinates (100-1000), creating the shortest possible route between them, starting anywhere and finishing anywhere else. I'm working with Python. I have researched the available algorithms, and my problem is similar to the...
Teresa e Junior
1

votes
2

answer
49

Views

Complexity of Dijkstra's Algorithm for Heap Implementation

In CRLS' book, the analysis of Dijkstra's algorithm is as follows: How many times do you need to use the heap? One time for pulling off each node from the heap (i.e. Extract-Min in CRLS's book) --- O(N); and also every time when looking at the edge ---- O(E), you might need to change the distance (i...
coder
0

votes
0

answer
3

Views

Cannot post to group using test user in app

Logged in as Test User to post to group in app while in development mode, but failed. According to this bug report https://developers.facebook.com/support/bugs/374244166706163/ It works only when I'm an admin of both the app and group. To request Groups API permission in App review section, I have t...
Boz
1

votes
2

answer
43

Views

Embedding second animated graph to PyQt5 GUI

I want to add a second animated graph to the GUI holding my first animated graph with both graphs animating at the same time, but I'm not sure how. Here is my code : import sys import numpy as np from matplotlib.backends.qt_compat import QtWidgets from matplotlib.backends.backend_qt5agg import ( Fig...
Edgar Nash
-1

votes
0

answer
35

Views

Microsoft graph webook validation token issue

I created an endpoint for the MIcrosoft Graph Webhook API but for some reason, the validation token returned isn't correct. It shows Validation: Testing client application reachability for subscription Request-Id: Any help would be appreciated { 'resource': '/enpoing', 'httpMethod': 'POST', 'querySt...
tawheed
0

votes
0

answer
8

Views

AccessDenied, Either scp or roles claim need to be present in the token

Using this URI I am trying to generate access tokens https://login.microsoftonline.com//oauth2/v2.0/token and the access tokens were successfully generated. And I am passing client_id,client_secret,grant_type and scope. When I tried to check https://jwt.io/#encoded-jwt I found that its an Invalid...
Divyashree R
0

votes
1

answer
17

Views

How to create a graph representing multiple time invervals per day

Given the following dict containing pairs of opening/closing hours per day: timetable = { 'monday': ['08:00', '12:00', '13:00', '18:00'], 'tuesday': ['08:00', '12:00', '13:00', '18:00'], 'wednesday': ['08:00', '12:00', '13:00', '18:00'], 'thursday': ['08:00', '12:00', '13:00', '18:00'], 'friday': ['...
user11392621
0

votes
0

answer
5

Views

Problem when removing nodes (but keeping graph strongly connected)

I'm trying to simulate a rectangular room with some rectilinear obstacles within it, and so I formulated the problem as a graph in networkx. To add the obstacles, I'll choose nodes and then delete all of its edges. In order to prevent the graph from partitioning, this is the code I used self.G = nx...
JaP
1

votes
2

answer
96

Views

Getting likes data (id and name) from JSONArray - Facebook api

i'm trying to get id and name from likes data in the facebook graph api on android: { 'data': [ { 'id': '1433908706707486_917483885016640' }, { 'id': '1433908706707486_910831695681859' }, { 'id': '1433908706707486_906550586109970', 'likes': { 'data': [ { 'id': 'xxxx', 'name': 'xxx' } ], 'paging': {...
ahsen
1

votes
1

answer
41

Views

How to find posts of a facebook page within a certain period of time?

I want to import posts of a page between 07-12-2017 and 10-12-2017. I have converted the dates to unix timestamps. https://graph.facebook.com/v2.11/ekantipur?fields=posts.until(1512926148).limit(125)&access_token=MyAccessToken works and so does https://graph.facebook.com/v2.11/ekantipur?fields=post...
Ashutosh Chapagain

View additional questions