How to implement breadth first search to find degrees of separation between two people in javascript

226
May 01, 2017, at 07:39 AM

I tried to use C# but in javascript I couldnt do it(data is in JSON object in property array). Please help! Thank you. The degrees between a person and himself is always 0 The degrees between friends is 1 and so on If there is no chain between two people, their degree is defined to be -1

READ ALSO
Openshift node_modules grows out of quota

Openshift node_modules grows out of quota

I have an application in node on OpenShift, after adding some devDependecies into it, particularly babel, and pushin to the repo it stopped to buildThe node_modules folder growing constantly until it reached the limit of quota

350
JavaScript WebSocket OnOpen not called

JavaScript WebSocket OnOpen not called

I can't seem to get this WebSocket connection workingHere is my server:

838
MySQL result from node.js in html, by react.js

MySQL result from node.js in html, by react.js

I make my first web application with nodes and reaccI do sql query in node

363
Google Actions API webhook response on Heroku nodejs

Google Actions API webhook response on Heroku nodejs

Im trying to use a user's input to be included in the webhook post so that I can use it in my appMy app originally turns house components on or off

478