maksim2042 / snabook Goto Github PK
View Code? Open in Web Editor NEWCode for "Social Networks for Startups"
Code for "Social Networks for Startups"
Hiii, I encountered a problem with the depth first search function written in the book.
I think it's because the Networkx version used in the book is older than the current one.
(Again not sure I'm just an humble beginner hihi ๐
)
I implemented the function in hc.py to the network about economic relationships in Caucasus.
The output given in the book:
[['Turkmenistan', 'Nagorni Karabakh', 'Russia', 'Abkhazia'], ['USA', 'Armenia', 'EU', 'Kazakhstan'], ['Turkey', 'Georgia', 'Iran', 'Azerbaijan'], ['Chechnya'], ['South Osetia']]
The output I got:
[['Abkhazia', 'Armenia'], ['Azerbajan'], ['Chechnya', 'Georgia', 'Kazakhstan', 'Turkey'], ['EU'], ['Iran'], ['Nagorni Karabakh', 'Turkmenistan'], ['Russia'], ['South Osetia'], ['USA']]
When i run hijackers.py file in Pycharm i dont see any image.
Here is output:
D:\WinPython-32bit-2.7.5.1\python-2.7.5\python.exe "F:/Python/Graph packages/SNABook-master/chapter4/hijackers.py"
drawing nodes...
{'93_Penn': 'g', '175_WTC South': 'r', 'None': 'b', '77_Pentagon': 'm', '11_WTC North': 'c'}
drawing edges...
drawing labels...
Process finished with exit code 0
Hi!
There's no "ACME_orgchart.net" here. Is there other source to look at?
Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.