Questions tagged [graph]

25793 questions
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
34

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
1

votes
0

answer
86

Views

How to find a cut set of edges in a graph in R

In R, there is the minimum.size.separators function from igraph package, that find all vertex sets of minimal size whose removal separates the graph into more components. What I want to know is if there is something equivalent in R for edges, i.e., if there is an equivalent function that find all ED...
Dani Depi
1

votes
1

answer
123

Views

Problems sign up to facebook with ruby on rails

when I sign up using facebook my url is http://localhost:3000/registration then it will change to http://localhost:3000/registration#= but it wont let me login that the only thing it changes on that page just the url. Contoller class OmniauthCallbacksController < Devise::OmniauthCallbacksController...
AB74574
1

votes
1

answer
24

Views

JavaScript graph from time and data

I have array of objects, they contain unix timestamp and some data. For example: [{ time: 1496709642, data: 35.5 }, { time: 1499709642, data: 36.2 }] Data is not evenly distributed, so for example after 1499709642 can come 1499709645, 1499908442 and so. What library can use for this?
S. One
1

votes
1

answer
1.4k

Views

seaborn modify y axis (log scale) to show more values

I have plotted a boxplot using seaborn, the y axis is uses a log scale (time in miliseconds). I would like to make the y axis more clear by including more values on the axis. How could I achieve that? The code used and the graph generated are below. ax2 = sns.boxplot(x='xVals', y='Time', data=df2, w...
RegUser
1

votes
0

answer
62

Views

Maintaining a graph and getting path lengths of all the nodes in SQL

I have a simple system that maintains the friendships of people. for example, something like this: | id1 | id2 | ------------- | 1 | 5 | | 5 | 7 | | 3 | 7 | | 2 | 1 | Where id1, id2 are 2 ID's of 2 different people, respectfully. This relation represents a graph where each id is a no...
Loay
1

votes
1

answer
355

Views

Filtering Event Messages using Microsoft Graph REST API

I would like to query only Event Messages from Outlook Mail using the Microsoft GRAPH API. I could not find any information on this in the documentation for Microsoft Graph. I have tried the following queries on the Graph Explorers, but none worked. It seems like Microsoft Graph does not support th...
Josh Pham
1

votes
0

answer
119

Views

Outlook notification subscription using Azure Webhook Domain Not Found

I am working on Creating a push notification for inbox messages to be sent to my azure webhook. I have been following the documentation as a reference. Till now I have been able to create and register my app using the Azure app registration. I got the client_id and client_secret accordingly. Shared...
gkb
1

votes
1

answer
1.1k

Views

What is the Facebook Business Manager “BUSINESS_SCOPED_USER_ID”?

As usual the official FB documentation is confusing.. Literally: You need: adaccount_id : the ad account id (in 'act_123' form) user_id : the id of the user to add the role to assign Make this POST call to add a new user as Admin: curl \ -F 'user=BUSINESS_SCOPED_USER_ID' \ -F 'role=ADMIN' \ -F 'acc...
Roberto Belotti
1

votes
1

answer
104

Views

Google Charts LogScale not working

I'm using Google Charts to make a bar graph and I'm trying to get the graph to use a logscale on the vertical axis but it's not working for some reason. I've tried using logScale and scaleType but neither of them work. Here's my code: google.charts.load('current', { 'packages': ['bar'] }); google.ch...
Neuro
1

votes
0

answer
155

Views

Which scopes and APIs to use with Microsoft Live OAuth?

I've been trying to include Microsoft OAuth authentication in my web app using the following documentations : https://docs.microsoft.com/en-us/azure/active-directory/develop/active-directory-v2-protocols-oauth-code And: https://msdn.microsoft.com/en-us/library/hh243647.aspx My question is this : sho...
Michael
1

votes
2

answer
551

Views

getting public_content permission for instagram, it says “applications no longer accepted”

I want to create an app that can let users login and give basic, follower list and public_content permission. The purpose is to get a users basic info along with public info of non authenticated users. The developer website says: 'public_content - to read any public profile info and media on a user...
Meghanaa Aggarwall
1

votes
0

answer
330

Views

Accessing FB Business Manager API

I am trying to access FB Business Manager Marketing API to get data on my Ad Set data. The way I went about accessing this is by first creating an app through here: https://developers.facebook.com/apps Should I use something else like Rfacebook? This is how I did it below: I retrieved my App Id a...
nak5120
1

votes
0

answer
58

Views

Boost graph library - distributed adjacency list

I've been recently trying to implement an algorithm using distributed adjacency lists, as defined in the BGL documentation (http://www.boost.org/doc/libs/1_46_1/libs/graph_parallel/doc/html/distributed_adjacency_list.html) I am constantly seeing this error: error: ‘mpi’ is not a member of ‘boo...
sdgaw erzswer
1

votes
0

answer
148

Views

Efficiently plotting large number of pictures on a grid in Python

I've implemented a program that outputs a very large number of tiny images next to each other in a certain way. Currently I'm using a grid of 50x50 but I want to be able to increase this and my current code becomes really slow in that case. I've read from several people online this is because of the...
user3343378
1

votes
2

answer
452

Views

How To Reset Password Of Office 365 Azure AD User Using Graph API?

Graph API - We are trying to reset password of office 365 azure ad user, for that it acquires access token from azure ad using client credentials grant flow, in a daemon app\service, but unable to reset password of user. It responds 'Insufficient privileges to complete the operation', I have given...
Anand Nandeshwar
1

votes
0

answer
75

Views

Manage contact list using Microsoft Graph

I would like to create/read/edit and delete contact lists (similar to Exchange category, where you can group multiple contacts) of Office 365 Outlook using the Microsoft API. I have went through the documentation and attempted to perform the actions above using Microsoft Graft Explorer. It seems lik...
Josh Pham
1

votes
0

answer
196

Views

Can one application have two facebook app id with two different fb account?

I have published one application which uses facebook login. I have created facebook developer account and get app id for my application and it was working fine. Its been a year I have released my application on google play. But now I am not able to access my facebook account. I am facing this error...
Krishna
1

votes
0

answer
92

Views

Facebook Structured Message (Template) in conversation api

I'm working on linking a Messenger Bot with a Inbox Manager App. Inbox Manager App need to get old messages from /conversation API https://developers.facebook.com/docs/graph-api/reference/v2.11/conversation/messages to display old messages. However, I can't find proper data to display it. Example: 1...
Nguyễn Huy
1

votes
1

answer
419

Views

How to connectt Skype for Business Online data from Microsoft Graph Explorer

I am trying to start collecting Skype for Business Online data using Microsoft Graph Explorer in order to do my own reporting. Eventually, my goal is to automate this process using API calls and write the return data in my own monitoring database. I opened a O365 trial account and using graph explo...
Arda Savran
1

votes
1

answer
81

Views

D3 graph shows zero in y axis

Hello i was plotting D3 line graph with brush and zoom i was able to do it but in y-axis of the graph the values shows zero even after data having some values and one more problem is mouse-hover even is not firing properly on circles due to pointer-events: all; on .zoom class adding fiddle h...
graylog dev
1

votes
1

answer
61

Views

Connecting 2 lists of nodes efficiently in java

I'm building a flow network and I have two lists containing nodes which have properties associated with them. I have to connect both list based on these properties. What I'm doing at the moment is iterate through list A and for each element iterate over all elements of list B and connect nodes if th...
mBo
1

votes
0

answer
282

Views

Swift Firebase Facebook Login - Gets Name, but email returns nil

Recently my facebook login hasn't been working. It doesn't save into my database but in Firebase authentication it shows someone signed in with facebook but the email is blank. It doesn't save any data to my database which it should. The email is returning nil. My google sign in works. I've checked...
Lukas Bimba
1

votes
1

answer
33

Views

When calling the graph endpoint I get [NULL] in return

When calling the graph endpoint https://graph.microsoft.com/v1.0/users/[User] we get “null” for preferredLanguage. This is for both synced and cloud users. The local AD has the correct value and retrieving users by PowerShell also returns what is expected. Please advise
Anders365

View additional questions