bloominstituteoftechnology / graphs Goto Github PK
View Code? Open in Web Editor NEWGraphs, BFS, DFS, connected components
Graphs, BFS, DFS, connected components
test_loop_fork.txt
The test_loop_fork.txt
seed data file in src/projects/adventure/maps/test_loop_fork.txt
has an error in its adjacency list.
The printed map looks like so:
As you can see, room 008 and room 009 are connected. However, the adjacency list in test_loop_fork.txt
has the following values at keys 8
and 9
:
{
# ... other keys omitted
8: [(1, 5), {'e': 7}],
9: [(1, 4), {'n': 8, 's': 10}],
}
The adjacency list should be corrected to have the following entry at key 8
so that room 8 will reflect its southward connection to room 9
{
# ... other keys omitted
8: [(1, 5), {'e': 7, 's': 9}],
}
Dear Sir/Madam,
I managed to get the code running. I would like to make the following 3 enhancements to the program too.
The 3 enhancements are:
1.) New feature to change names of existing users.
2.) Add/remove friendship instead of just adding.
3.) Show all friends' names of a given user name.
Do let me know about it. Thank you.
Yours sincerely,
Fareeduddin
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.