Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <stdio.h>
- #include <vector>
- #include <queue>
- using namespace std;
- vector < vector<int> > adj; //Lista di adiacenza
- int N,M; //N numero nodi, M numero archi
- void crea_Lista_Adiacenza ()
- {
- for(int i=0;i<M;i++)
- {
- int temp;
- int temp1;
- cin>>temp;
- cin>>temp1;
- adj[temp].push_back(temp1);
- adj[temp1].push_back(temp);
- }
- }
- BFS(int ricercato)
- {
- }
- int main()
- {
- //Aperture File .txt
- freopen("input.txt","r",stdin);
- freopen("output.txt","w",stdout);
- cin>>N;
- cin>>M;
- crea_Lista_Adiacenza();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement