JGraphT library is added to project

links and nodes dynamically send to the servlet
links and nodes are modeled 
generate a graph using jgrapht library according to the links and nodes
finds simple cycles on the graph but still not completed the finding cycles overhead probelem

now it was solved by changing the web.xml file