-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdecrease_potential.cpp
More file actions
35 lines (32 loc) · 954 Bytes
/
decrease_potential.cpp
File metadata and controls
35 lines (32 loc) · 954 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#include "BD_graph.h"
#include<iostream>
using namespace std;
void graph::dec_pot()
{
vector< pair<long,float> > :: iterator it = potentiala.begin();
for(int i=0;i<400;i++)
{
//cout<<"pot before"<<potentiala[i].second<<endl;
potentiala[i].second = potentiala[i].second * 0.3;
//cout<<"pot after"<<potentiala[i].second<<endl;
}
for(int i=0;i<400;i++)
{
//cout<<"pot before"<<potentialb[i].second<<endl;
potentialb[i].second = potentialb[i].second * 0.3;
//cout<<"pot after"<<potentialb[i].second<<endl;
}
/*
for(it;it!=potentiala.end();++it)
{ //cout<<"pot before"<<it->second<<endl;
it->second = it->second * 1;
//cout<<"pot after"<<it->second<<endl;
}
vector< pair<long,float> > :: iterator it1 = potentialb.begin();
for(it1;it1!=potentialb.end();++it1)
{ //cout<<"pot before"<<it->second<<endl;
it->second = it->second * 1;
//cout<<"pot after"<<it->second<<endl;
}
*/
}