正文
增加 1 行删除 1 行
74 行未改动75767778798081828331 行未改动74 行未改动g.resize(5); // 让g大小为5(点编号0-4)```2.connect```cppg.connect(a , b); //建一条a->b的无向边(边权1)g.connect(a , b , t); //建一条a->b的无向边(边权t)g.connect(a , b , t , true); //建一条a->b的有向边(边权t)31 行未改动74 行未改动75767778798081828331 行未改动74 行未改动g.resize(5); // 让g大小为5(点编号0-4)```2.connect```cppg.connect(a , b); //建一条a->b的无向边(边权1)g.connect(a , b , t); //建一条a->b的无向边(边权t)g.connect(a , b , t , true); //建一条a->b的有向边(边权t)31 行未改动