<｜begin▁of▁sentence｜>### Instruction:
Given a DIMACS minimum-cost flow file format located at 'path/to/dimacs_file.dim', can you use igraph's Read_DIMACS function to read the graph and retrieve the source, target, and edge capacities? Notes: The graph is directed and node indices start from 1. Only a single source and target node is allowed. You need to print the source, target, graph edges, and capacities.
### Response:
from igraph import Graph

# Read a graph from a DIMACS formatted file
file_path = 'path/to/dimacs_file.dim'
graph, source, target, capacities = Graph.Read_DIMACS(file_path, directed=True)

print(f'Source: {source}')
print(f'Target: {target}')
print('Graph edges:', graph.es['source'], '->', graph.es['target'])
print('Capacities:', capacities)
<|EOT|>
