Giter Site home page Giter Site logo

graph_search_algorithms's Introduction

Search Algorithms on large graphs

This is Java based library for search and trace algorithms used in large networks, like the social networks and communication networks.

Functionality - For Communication Networks ->

Create a minimum spanning tree for the network, trace a machine on network, find the nearest machine, find the cost of communication between 2 machines
....

Functionality - For social networks ->

find friends, friends of friends, find the degre of closeness, suggest friends
...

To run the code -> make some appropriate I/O of your choice, one such I/O implementation is given in MakeGraph class.

Sample input file - In the sample I/O, graph is fed into the algorithm through a txt file. Sample file is present in code base. Here is the structure of input.txt.

	input.txt - for searching a node
	- - - - - - - -
	
line 1: choide of search algorithm line 2: source node line 3: target node line 4: number of nodes line 5: --- list nodes... line 5 + number of nodes - 1: ---- graph in the form of adjacency matrix. line 5+2*number of nodes - 1. --end

To run the code

	javac Node.java Graph.java *.java

	java *.java

	-  *.java your I/O interface class

graph_search_algorithms's People

Contributors

ajagtian avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.