Refined visualization by coloring nodes and edges based on weights.